Skip to content

Instantly share code, notes, and snippets.

@maxpert maxpert/clearfix.css
Created May 30, 2011

Embed
What would you like to do?
Minimal clearfix
/* For modern browsers */
.cf:before,
.cf:after {
content:"";
display:block;
}
.cf:after {
clear:both;
}
/* For IE 6/7 (trigger hasLayout) */
.cf {
zoom:1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.