Originally Posted by Frankie
I disagree with that advice. And I'm not the only one. Apart from the tricky behavior Peter-Paul Koch describes, there is more, described by Eric Meyer
My advice to prevent/solve float problems:
Cross-browser, no side-effects and intuitive. What more do you want?
Hmm, added markup that presents no content, based on advice from a page written in 2003? Even Eric Meyer describes them as "structural hacks." Not for me I think.
Granted there are a few places
may not work(very few) and, when it doesn't, there are other clearing methods including your suggestion.
I especially like the added bonus using overflow has of showing a scrollbar when you don't follow the box model rule.