Sunday, September 05, 2004

Styling the body element in XHTML

Updating this entry.

body {position: absolute; top: 0px; width: 100%;margin:0px;min-height: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. Zero margin - to work round any default margins - and at least full viewport height have been added.

No comments :