joined:July 22, 2004
My xhtml page has all of the body code INSIDE a absolutely positioned DIV, with a height of 100% and a width of 800px. The div background is white, while the page background is blue.
Inside of this "body" div are two relatively-positioned divs: one with main content/navigation, and one with a footer.
I wanted the "body" div to stretch to the bottom of the screen (100%) and leave a blue column on the right (after the 800pixel div ends). The main content/navigation div should push the footer to the end of the page.
Instead, the browser ignores the div background color, and I get blue background everywhere, unless I set the "body" DIV height to a value like 400px.
Why doesn't height: 100% make the DIV go all the way down?