JS3der
2007-02-20 13:52:54 UTC
Does anyone know how to get an empty/not filled DIV to fill completely,
vertically, a browser screen? When I apply a height of 100% to a DIV, it
appears correctly, to fill the browser window vertically, ONLY, in both Firefox
and Netscape, but only appears as tall as the content it contains in IE. Even
when I place a clearing DIV to try and force the window vertically, it still
did not expand in IE6. The code I attached displays correctly in Firefox(1.5)
and Netscape(8.2)
In HTML : <div id="leftNav</div>
In CSS:
#leftNav {
position:absolute;
float:left;
width:210px;
height:100%;
border-left:#006699 solid 5px;
border-right:#006699 solid 1px;
background-color:#f7f8fa;
top:99px;
left:0px;
overflow:visible;
}
vertically, a browser screen? When I apply a height of 100% to a DIV, it
appears correctly, to fill the browser window vertically, ONLY, in both Firefox
and Netscape, but only appears as tall as the content it contains in IE. Even
when I place a clearing DIV to try and force the window vertically, it still
did not expand in IE6. The code I attached displays correctly in Firefox(1.5)
and Netscape(8.2)
In HTML : <div id="leftNav</div>
In CSS:
#leftNav {
position:absolute;
float:left;
width:210px;
height:100%;
border-left:#006699 solid 5px;
border-right:#006699 solid 1px;
background-color:#f7f8fa;
top:99px;
left:0px;
overflow:visible;
}