Skip to content

Instantly share code, notes, and snippets.

@nicohq
Forked from craigerskine/clearfix.css
Last active December 17, 2015 18:49
Show Gist options
  • Save nicohq/5655625 to your computer and use it in GitHub Desktop.
Save nicohq/5655625 to your computer and use it in GitHub Desktop.
.clearfix:before,
.clearfix:after {
content: " ";
display: table;
}
.clearfix:after {
clear: both;
}
.clearfix {
zoom: 1;
/* *zoom: 1; For IE 6-7 */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment