Skip to content

Instantly share code, notes, and snippets.

@zetareticoli
Created April 21, 2011 09:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save zetareticoli/934071 to your computer and use it in GitHub Desktop.
Save zetareticoli/934071 to your computer and use it in GitHub Desktop.
Micro 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