Skip to content

Instantly share code, notes, and snippets.

@leecade
Created March 9, 2012 08:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leecade/2005662 to your computer and use it in GitHub Desktop.
Save leecade/2005662 to your computer and use it in GitHub Desktop.
css:clearfix
.clearfix{ zoom: 1;}
.clearfix:before, .clearfix:after{ content: ""; display: table;}
.clearfix:after { clear: both;}
.clearfix{ zoom: 1;}
.clearfix:before, .clearfix:after{ content: ""; display: table;}
.clearfix:after { clear: both;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment