Hi,
Is it possible to make the left, middle & right parts of my page extend to the bot <div> tag.
Currently the height is set to 70%, I want it to finish exactly 60px from the bottom regardless of screen resolution. I need it to work with IE 6.0, or lower.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml"
>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"></div>
<div id="menu"></div>
<div id="left"></div>
<div id="middle"></div>
<div id="right"></div>
<div id="bot"></div>
</body>
</html>
style.css shown below.
html, body {
margin: 0;
padding: 0;
background: #FFFFFF;
height: 100%;
}
#top{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 60px;
background-color: #003366;
}
#menu{
position: absolute;
top: 60px;
left: 0;
width: 100%;
height: 25px;
background-color: #FF3366;
}
#middle{
position: relative;
top: 86px;
margin-right: 150px;
margin-left: 150px;
height: 70%;
background-color: #7555DD;
}
#left{
position: absolute;
left:0px;
top: 86px;
width: 150px;
overflow: auto;
height: 70%;
background-color: #009900;
}
#right{
position: absolute;
right:0px;
top: 86px;
width: 150px;
overflow: auto;
background-color: #CC6600;
height: 70%;
}
#bot{
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 61px;
background-color: #999999;
}
I am new to CSS so any advice would be appreciated, thanks.
Thanks.
Start Free Trial