Prev | Current Page 205 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

If the viewport is larger than the document, the canvas
fills the viewport.
Any background color or image that??™s specified for the root element??”the html
element for HTML and XHTML documents??”will be rendered as the background
for the whole canvas, rather than for the root element alone.3 In other words, the
background specified for the root element will cover the entire content area of the
browser window, even if the document doesn??™t contain enough content to fill the
whole window.
The CSS Box Model
Your understanding of the box model concept, and how it relates to the way in
which an element??™s final dimensions are determined, will be essential to your
understanding of how an element is positioned on a web page. The box model
applies to block-level elements. A companion concept, the inline layout model,
defines how inline elements are positioned, and is covered in Inline Formatting
(p. 166).
Calculating Box Dimensions
In CSS2.1, block-level elements can only be rectangular.


Pages:
193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217