View Full Version : problem with <div>

Nov 5th, 2009, 03: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 ?


Nov 5th, 2009, 03: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.