Can anyone help me with this I have set up a page with <div id="content-body"> filled with all the content and I want this to have an auto height on it as there is re sizable functions on the page. But when I set the height to auto the height is only about 5 pixels high and doesn't seem to take any notice of the content. I can't for the life of me work out why and any help will be much appreciated.
The web page in question is http://www.flitecarz.co.uk/leaflet-flyer-printing.html
NessaFrankling wrote:
Can anyone help me with this I have set up a page with <div id="content-body"> filled with all the content
Actually, it's not filled with content. Both the rightbar and Main-Middle divs are floated inside your content-body div. When elements are floated, they're removed from the normal flow of the document. As a result, content-body has no height.
Remove the height property from the #content-body style rule, and add overflow: hidden:. Adding the overflow property will make the div stretch to accommodate the floated divs.
North America
Europe, Middle East and Africa
Asia Pacific