seedy wrote:
Just as a follow up on this, it doesn't have to be overflow hidden, just any overflow attribute. Applying the overflow forces the browser to calculate the size of the div to see if it needs to show the scrollbar or not.
...any overflow value *other than "visible"* which is the initial value. Also note that automatic clearing via setting overflow does not work in IE 6.
In this case although clearing is triggered by setting a width on the parent element.
--Klaus