Prev | Current Page 591 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

1 specification8 recommends that we
specify the document background for the body element, rather than for the html
element. If the computed value of the background property for the html element is
transparent (the initial value), any background properties specified for the body
element will be applied to the canvas (p. 141). This isn??™t the case for XHTML.
The CSS2.1 specification9 also says that an overflow property declared for the body
or html elements may be applied to the viewport, but only for HTML documents.
In reality, though, browsers apply this property to the viewport for XHTML
documents too.
Differences Between HTML
and XHTML
8 http://www.w3.org/TR/CSS21/colors.html#background
9 http://www.w3.org/TR/CSS21/visufx.html#overflow
Appendix A Alphabetic Property Index
Alphabetic Property Index
This is a complete, alphabetical list of the CSS properties contained in this reference.
background . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .


Pages:
579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603