The simplest IE7 clearfix
No need for * hacks or triggering hasLayout with zoom: 1, just use min-height: 0!
.clearfix { /* container of floated elements */
min-height: 0;
}
Note: the container also has to be a block-level element
Written by Matt Stow
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Css
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#