Here is some code that should do the job. Basically with stict HTML and I assume XHTML to use the % height you need to set the height of the containing object. So you have to start with the body and then set every div that contains the one that you want to be full size.
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<!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>
<title>Test</title>
<link href="default.css" media="all" rel="stylesheet" type="text/css" />
<style>
body {
margin: 0px;
background-repeat: repeat-x;
background-color: #CCC;
}
#contenta {
width: 760px;
background-repeat: repeat-x;
background-color: #FFC;
height: 100%;
}
#header {
height: 102px;
background-position: 36px 50px;
background-repeat: no-repeat;
background-color: #0FC;
}
#border {
background-repeat: no-repeat;
width: 130px;
float: left;
background-color: #966;
height: 100%;
}
#contentc {
background-color: #06F;
float: right;
width: 630px;
height: 100%;
}
#subheader {
height: 209px;
background-color: #0FF;
}
#menu {
height: 35px;
background-color: #F36;
width: 630px;
}
#content {
background-color: #CC9;
width: 630px;
height: 100%;
}
#mmenu {
background-color: #C9F;
height: 209px;
width: 215px;
float: left;
}
#menuitem {
background-color: #F6C;
width: 215px;
height: 174px;
}
#himage {
float: right;
height: 209px;
width: 415px;
background-color: #090;
}
#titel {
width: 215px;
background-color: #FC0;
height: 35px;
}
</style>
</head>
<body onload="getLinksToBlur();" style="height:600px;">
<div id="contenta">
<div id="header">header</div>
<div style="height:100%;">
<div id="border">border</div>
<div id="contentc">
<div id="subheader">
<div id="mmenu">
<div id="titel">titel</div>
<div id="menuitem">menu item</div>
</div>
<div id="himage">himage</div>
</div>
<div id="menu">menu</div>
<div id="content">content</div>
</div>
</div>
</div>
</body>
</html>
Bookmarks