CSS Trick to Auto-Clear Floats

Thursday, 08 October 2009

Great CSS tip from Mike Rundle on Twitter:

Oldie but goodie CSS trick: to autoclear floats, put overflow: auto; and zoom: 1; on the container DIV. Works IE6 and up.

I always end up forgetting this and having to look it up.


Questions or Comments about this entry?
Send me a message on Twitter (@mirthlab) or via Email.