Skip to content

Instantly share code, notes, and snippets.

@bekapod
Created May 8, 2012 13:00
Show Gist options
  • Save bekapod/2634730 to your computer and use it in GitHub Desktop.
Save bekapod/2634730 to your computer and use it in GitHub Desktop.
CSS: Clearfix
.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