Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Making wrapper div extend to same height as content divs

Tags:

css

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?

like image 878
jerrygarciuh Avatar asked Feb 23 '10 19:02

jerrygarciuh


1 Answers

overflow: auto will do the trick

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

like image 194
Pekka Avatar answered Sep 24 '22 06:09

Pekka