PDA

View Full Version : height:100%


angiras
04-22-2003, 05:18 PM
how can you get the document height into the window, height:100%;

for XHTML this doesn't work with mozilla and opera


html
{
height:100%;
}
body
{
margin:0px;
border:none;
padding:0px;
height:100%;
overflow:hidden;
}
#header
{
width:100%;
height:10%;
margin:0px;
padding:0px;
}
#content
{
width:100%;
height:80%;
border:0 none;
margin:0px;
padding:0px;
overflow:auto;
}
#footer
{
width:100%;
height:10%;
margin:0px;
padding:0px;
border:0 none;
}

cg9com
04-23-2003, 02:14 AM
Setting the body AND html element height to 100% should work (although i think its not needed in html?), unless the CSS/HTML is conflicting for some reason.

I dont think theres anything wrong, can we see an example?
Are you sure you are using id=""?