Hi.
I’m sure someone has asked this question, but I couldn’t find it anywhere.
I’m trying to postion my container div in the center of the page, with NO margin at the top or bottom, and a height of 100%.
body
{
margin:0;
padding: 0;
}
#container
{
margin: 0px auto;
padding: 0;
width: 1000px;
height: 100%;
}
I can’t figure out when height:100% works or not (it’s not working here) and even if I define a height in pixels, the container won’t start at the top of the page (IE6, Mozilla). Isn’t there a way to get this effect without giving the div a negative margin?
Thanks for your help.
Abuchuk