Skip to content

Instantly share code, notes, and snippets.

@qzm
Forked from red2678/clearfix.css
Last active March 20, 2017 15:34
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 qzm/bbea97146dd6d9c2399f1da46f0e3636 to your computer and use it in GitHub Desktop.
Save qzm/bbea97146dd6d9c2399f1da46f0e3636 to your computer and use it in GitHub Desktop.
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