Hi!
I'd like to create a page where there are three 'columns', but I can't get the floating DIV's to span the entire height of the page. The best I've been able to get is 100% of the browser window, but that ends the DIV's when scrolling down. Below is a short mockup of what I'm trying to do (which isn't working). I've tried just about every combination of height 100%/auto/inherit, clearing div's, etc. that I can think of.
EDIT: I forgot to say: setting everything to height 100% works in IE8, but not FF3.6.2
I'd like to create a page where there are three 'columns', but I can't get the floating DIV's to span the entire height of the page. The best I've been able to get is 100% of the browser window, but that ends the DIV's when scrolling down. Below is a short mockup of what I'm trying to do (which isn't working). I've tried just about every combination of height 100%/auto/inherit, clearing div's, etc. that I can think of.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<title>Test</title>
<style type="text/css">
html, body
{
height: 100%;
}
.container
{
height: auto;
background: #FF0000;
}
.left
{
height: inherit;
background: #00FF00;
float: left;
}
.center
{
height: auto;
background: #0000FF;
width: 70%;
}
.right
{
height: 100%;
background: #00FF00;
float: right;
}
</style>
</head>
<body>
<div class="container">
<div class="left">
Left
</div>
<div class="right">
Right
</div>
<div class="center">
Middle
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
Middle
</div>
</div>
</body>
</html>
EDIT: I forgot to say: setting everything to height 100% works in IE8, but not FF3.6.2