Skip to content

Instantly share code, notes, and snippets.

@vjik
Created September 14, 2013 07:06
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 vjik/6559534 to your computer and use it in GitHub Desktop.
Save vjik/6559534 to your computer and use it in GitHub Desktop.
Clearfix modern browsers and IE8+
// clearfix
.clearfix() {
&:after { content: "."; display: block; height: 0; font-size: 0; line-height: 0; clear: both; visibility: hidden; }
}
.clearfix { .clearfix(); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment