Hi,
As Dresden said above you can colour the top blocks or rub out the background and the the last box shows the background to the bottom.
Here's a very rough mock up code below (using my absolute column technique) to show a similar method.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Equal columns - Including IE6</title>
<style type="text/css">
.row {
width:600px;
position:relative;
float:left;
clear:left;
margin:0 0 10px;
}
.row p {
margin:0px 0 10px;
height:100px;
background:red;
}
/* .box cannot be position:relative or this won't work */
/* use an inner if stacking context needed but leave .bg outside */
.box {
width:150px;
margin:0 50px 0 0;
display:inline;
float:left;
}
/* if you don't want an inner then use this instead
.box * {
position:relative;
z-index:2;
}
*/
.inner {
position:relative;
z-index:2;
width:150px;
}
.inner div {
background:#fff;
padding:1px 0 10px;
width:150px;
}
.inner div.last{padding-bottom:0;}
.box .bg {
width:150px;
background:red;
position:absolute;
top:0;
bottom:0;
z-index:1;
}
.inner .bg2 p,.row .box .bg2{background:blue}
.inner .bg3 p,.row .box .bg3{background:green}
</style>
<!--[if lte IE 6]>
<style type="text/css">
* html .row{overflow:hidden}
* html .box .bg{
top:auto;
bottom:0;
height:999em;
}
</style>
<![endif]-->
</head>
<body>
<div class="row">
<div class="box">
<div class="inner">
<div>
<p>test</p>
</div>
<div>
<p>test</p>
</div>
<div class="last">
<p>test</p>
</div>
</div>
<div class="bg"></div>
</div>
<div class="box">
<div class="inner">
<div>
<p>test</p>
</div>
<div>
<p>test</p>
</div>
<div>
<p>test</p>
</div>
<div>
<p>test</p>
</div>
<div>
<p>test</p>
</div>
<div class="last bg2">
<p>test</p>
</div>
</div>
<div class="bg bg2"></div>
</div>
<div class="box">
<div class="inner">
<div>
<p>test</p>
</div>
<div>
<p>test</p>
</div>
<div class="last bg3">
<p>test</p>
</div>
</div>
<div class="bg bg3"></div>
</div>
</div>
</body>
</html>
Bookmarks