Skip to content

Instantly share code, notes, and snippets.

@dponom
Last active June 2, 2017 14:39
Show Gist options
  • Save dponom/68ebba6015a2262109ad to your computer and use it in GitHub Desktop.
Save dponom/68ebba6015a2262109ad to your computer and use it in GitHub Desktop.
/* Created by @kovaldn */
.clearfix:before,
.clearfix:after {
content: " "; /* 1 */
display: table; /* 2 */
}
.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