If you consider the CSS overflow property in the parent element, and the property is set to auto or hidden, then the parent will expand to contain floats, effectively clearing it for subsequent elements.
Thus, the float property does not work at all.
Not sure if anyone has a hack.
Check out the document, http://www.w3.org/TR/css3-box/#float. Its for CSS3 also applies to CSS2.
source share