Skip to content

Instantly share code, notes, and snippets.

@johnnyfreeman
Created March 7, 2012 14:26
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 johnnyfreeman/1993438 to your computer and use it in GitHub Desktop.
Save johnnyfreeman/1993438 to your computer and use it in GitHub Desktop.
CSS: Micro Clearfix
/* http://nicolasgallagher.com/micro-clearfix-hack/ */
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { zoom: 1; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment