Skip to content

Instantly share code, notes, and snippets.

@maxpert
Created May 30, 2011 11:04
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save maxpert/998737 to your computer and use it in GitHub Desktop.
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