Thursday, August 05, 2004

Styling the body element in XHTML

body {position: absolute; top: 0px; width: 100%} does nothing for pages served as HTML. But this style is useful for Firefox and pages served as XHTML, as it makes the body element in XHTML behave just as it does in HTML and fill the entire viewport - no need to use a html-level id attribute to hang a style from on the base site.

Alas, it doesn't fix the doctype closure problem from the previous post.

Post a Comment