Skip to content

Instantly share code, notes, and snippets.

@shanemcd
Last active December 17, 2015 02:29
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 shanemcd/5535944 to your computer and use it in GitHub Desktop.
Save shanemcd/5535944 to your computer and use it in GitHub Desktop.
Best Clearfix
.clearfix {
zoom: 1;
clear: both;
}
.clearfix:before, .clearfix:after {
content: "\0020";
display: block;
height: 0;
overflow: hidden;
}
.clearfix:after {
clear: both;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment