Skip to content

Instantly share code, notes, and snippets.

@matt-west
Created September 9, 2013 14:52
Show Gist options
  • Save matt-west/6496684 to your computer and use it in GitHub Desktop.
Save matt-west/6496684 to your computer and use it in GitHub Desktop.
CSS Clearfix
.clearfix {
*zoom: 1;
}
.clearfix:before,
.clearfix:after {
display: table;
line-height: 0;
content: "";
}
.clearfix:after {
clear: both;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment