Last Updated: February 25, 2016
·
1.756K
· stowball

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