I am trying to center the page and then make it 100% tall. I have a div called "content" as the parent of all the elements in the HTML page. What do I need to do next? I would like to stay away from any CSS hacks. It currently works in IE7, but not in Firefox 3.
EDIT: I added height: 100%; on #content, which made it work in IE. Firefox has not decided yet.
My stylesheet so far:
html, body { width: 100%; height: 100%; } body { background-color: #000; text-align: center; margin-top: 0px; margin-left: auto; margin-right: auto; } #content { position: relative; text-align: left; background-color: #fff; margin-left: auto; margin-right: auto; margin-top: 0px; width: 840px; height: 100%; padding: 0px 5px 5px 5px; }
css
Buddyjo
source share