Prev | Current Page 204 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"


CSS does not, however, affect the markup in any way. The separation into block-level
and inline elements in HTML is specified in the HTML document type definition,
and cannot be changed. For example, setting the display property to block for a
span element doesn??™t allow us to nest an h1 element inside it, because the HTML
document type definition forbids it.
The Viewport, the Page Box, and the Canvas
In a continuous output medium, such as a computer monitor, a browser displays a
web document in a viewport??”a rectangular window through which we can view
a part of the document. In a paged medium, such as printed paper, each page can
2 This may change in future versions of CSS, but then we will have to call them something other
than ???boxes.???
CSS Layout and Formatting
The Ultimate CSS Reference 142
be seen as a viewport whose dimensions are the same as the page box (the printable
part of the page, excluding any page margins).
The browser renders the document on a canvas, which, consequently, is at least as
large as the document itself.


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