tags:

views:

243

answers:

2

Hi folks,

I have a wrapper div with a min-height set. Position is relative and display is block. I have two column divs floated left and set to inherit min-height.

When I have lengthy content the background color of #wrapper never extends to match the content in the column divs.

Page is here: http://youngimaginations.dreamhosters.com/index.php

CSS is here: http://youngimaginations.dreamhosters.com/yi.css

Can someone point out the error of my ways?

TIA

JG

+2  A: 

overflow: auto will do the trick

or a <div style='clear: both'> after the floated elements.

Pekka
watch out for issues with that trick in Safari.
pixeline
Thank you very much!
jerrygarciuh
+2  A: 

The proper fix is called "clearfix".

Read about it here, you'll never look back.

pixeline
Will that work in IE6? If it does, I'm sold.
Pekka
yes, it will, see this thread: http://stackoverflow.com/questions/211383/which-method-of-clearfix-is-best.
pixeline
Nice! +1 ------
Pekka