Skip to content

Instantly share code, notes, and snippets.

@growdigital
Created February 12, 2012 13:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save growdigital/1808547 to your computer and use it in GitHub Desktop.
Save growdigital/1808547 to your computer and use it in GitHub Desktop.
Micro Clearfix by Nicolas Gallagher
/* For modern browsers http://ow.ly/91hqf */
.cf:before,
.cf:after {
content:"";
display:table;
}
.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