Skip to content

Instantly share code, notes, and snippets.

@SirPepe
Created July 9, 2011 09:48
Show Gist options
  • Save SirPepe/1073470 to your computer and use it in GitHub Desktop.
Save SirPepe/1073470 to your computer and use it in GitHub Desktop.
Clearfix
/* Source: http://nicolasgallagher.com/micro-clearfix-hack/ */
/* For modern browsers */
.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