If you have a container with two or more floated divs in, the container no longer occupies space (its dimensions become non-existent). To combat this simply apply a width and overflow:hidden; to the container.
Fixed it in IE, I indeed had way too many heights still in there, taken them out systematically and it all seems to be working still.
Regarding the above post, what are the implications of it no longer occupying space? Would that collapse it down to 0px height and 0px width, effectively showing not showing the floated divs or pushing them elsewhere?
Sorry for the constant questions, I'm just keen to understand what you're talking about
When the elements are floated the container (green) collapses up (imagine the green is an elastic band and the red and blue are your fingers pulling it out sideways—the band would close up, right?). To stop it collapsing up, simply add a width declaration and overflow:hidden;
Nah I'd made it before a while ago to show guys at work, and all I needed to do was send it to a public domain, ie mine. Use firebug to knock overflow:hidden; off the bottom one and see what happens.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.