There's a thing I don't understand about floats which perhaps someone can enlighten me on:


I have a div container with a background colour of red.

Inside it is a content div with a bgcolour of green and a subnav div with a bgcolour of blue.
The subnav div is set to float to the right of the content area. The subnav is shorter than the content.


Now, I would have thought, that the bgcolour of red would 'fill up' the area below the subnav div to match the height of the content - merely because both are contained within the red coloured div, which should therefor expand to accommodate them both.

This doesn't seem to be the case. What aren't I understanding?

Thanks
Peter

*****************************************************
The discussion list for http://webstandardsgroup.org/
*****************************************************




Reply via email to