Is clearfix deprecated?

You can pretty much use overflow: hidden all the time.

But, there are exceptions. Here’s an example of one:

Overflowing a container div horizontally but not vertically

The question there was:


Here’s a more important example of when you can’t use overflow: hidden:

http://fordinteractive.com/misc/overflow/

That’s not to say that clearfix is the only alternative – display: inline-block cleanly fixes that example:

http://jsbin.com/ubapog

Leave a Comment