Skip to content

Instantly share code, notes, and snippets.

@PeterRao
Last active December 25, 2015 14:19
Show Gist options
  • Save PeterRao/6990466 to your computer and use it in GitHub Desktop.
Save PeterRao/6990466 to your computer and use it in GitHub Desktop.
/**
* Clearfix helper
* Used to contain floats: h5bp.com/q
*/
.clearfix:before, .clearfix:after {
content: "";
display: table;
}
.clearfix:after {
clear: both;
}
/*
* For IE 6/7 only
* Include this rule to trigger hasLayout and contain floats.
*/
.clearfix {
*zoom: 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment