View Full Version : problem with <div>

11-05-2009, 02:33 PM
i have some div tags in my site . first div is for the content of the page and the others are for the right and left menu and the content , but my problem is this that when the content became more and more , the content div hasn't bigger and I must give the height value for the content by hand and it is not good ,

how can solve it ?


11-05-2009, 02:44 PM
Hello hno2005,
It sounds like have not cleared your floats. If you add overflow:auto; to the div that contains your other divs your floats will clear and it should grow with your content.

Here is a page (http://www.quirksmode.org/css/clearing.html)that shows how it works.