Height Width 100% IE FF FTMFW!
Posted by elberon5 Thu, 13 Sep 2007 20:31:00 GMT
After much frustration i think i've solved the issues i've been having with getting something to fit perfectly in a browser window. I use this for map APIs so they take up the entire screen.
AFAIK this works in FF and IE. I don't respect the other browsers yet but feel free to post in the comments if it works there too.
<style in css file>
body, html
{
margin:0px;
padding:0px;
width:100%;
height:100%;
}
</style>
<div style="
position:absolute;
top:0px;
left:0px;
height:100%;
width:100%;
background-color:#C0C0C0;
">
.....
</div>

Comments
Leave a response