Absolute positioning is generally a bad idea for such a major page element. In quirksmode you can set an element's height to 100% and it will fill the window:
Code:
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
body {
text-align:center;
margin:0;
padding:0;
}
#main {
width:85%;
height:100%;
background-color:gray;
margin:0 auto;
}
</style>
</head>
<body>
<div id="main"></div>
</body>
</html>
But in standards mode (same basic code as above with a valid URL DOCTYPE) you cannot. It will only be as high as the content within it.
Bookmarks