Skip to content

Instantly share code, notes, and snippets.

@Boztown
Created March 14, 2012 19:16
Show Gist options
  • Save Boztown/2038788 to your computer and use it in GitHub Desktop.
Save Boztown/2038788 to your computer and use it in GitHub Desktop.
CSS: clearfix
/* For modern browsers */
.clearfix:before,
.clearfix:after {
content:"";
display:table;
}
.clearfix:after { clear:both; }
/* For IE 6/7 (trigger hasLayout) */
.clearfix { zoom:1; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment