Skip to content

Instantly share code, notes, and snippets.

@joseph-turner
Forked from Usse/clearfix.scss
Last active December 16, 2015 03:59
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 joseph-turner/5374367 to your computer and use it in GitHub Desktop.
Save joseph-turner/5374367 to your computer and use it in GitHub Desktop.
// Clearfix (add or extend this class on elements containing floated elements)
.cf {
zoom: 1;
&:before,
&:after {
content: '';
display: table;
}
&:after {
clear: both;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment