Web Hosting Talk







View Full Version : CSS help, not for the light-hearted


arkin
02-20-2006, 05:55 PM
Ok, so I'm designing a website, which is not my strong point.
I'm using the code as mentioned in another post (in my own way).
Basically I have

<style>
.cell1,.cell2, .row { background: #FFFFFF; }
.cell1 { width:30%; float:left;}
.cell2 { width:70%; float:left; }
</style>

<div class="row">
<div class="cell1">Blah</div>
<div class="cell2">Blah</div>
</div>

When cell1 contains more than cell2 the background in cell2 does not pull all the way down to match cell1.

This is simplified code.

Dan L
02-20-2006, 05:57 PM
add

<div style="clear: both;"></div>

under cell2

arkin
02-20-2006, 06:05 PM
Yeah, I actually sorted it, it was the lowerdiv messing it up...trying to get it to act like colspan="2"... I just included that in the area.. which makes sense :p