Quote:
|
except when I change the height from 917px to auto, the container just disappears.
|
As it would if it has no content.
auto height means as much height as you need to hold the content, and floated elements take up no height inside a container (apart from in IE and it's wannabe cousin Opera of course )
You will need to use a clearing element after the last floated element to "break" the float and restore the document flow. This will let the container height function as expected.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
Last edited by chrishirst; 01-20-2008 at 07:00 AM..
|