Sometimes, when I have an element that has float:left, it’s parent element does not wrap around it. The parent element has a height and width of 0px. It behaves as if the element with the “float” had position:absolute.
@aj_nscDec 18.2010 — #Because floated elements are, somewhat, like position: absolute elements - they are taken out of the normal flow of the document. This used to be a heck of a problem several years ago when everybody was scrambling and scratching their heads for fixes (the fix has been fairly common knowledge now for a while). The solution is simple: apply the following rule to the parent of the floated element: