Skip to content

Instantly share code, notes, and snippets.

@Usse
Created November 12, 2012 13:14
Show Gist options
  • Save Usse/4059328 to your computer and use it in GitHub Desktop.
Save Usse/4059328 to your computer and use it in GitHub Desktop.
Sass Mixin for float clearing
@mixin clear() {
&:before, &:after {
content: "\0020";
display: block;
height: 0;
overflow: hidden;
}
&:after {
clear: both;
}
}
// usage
// @include clear()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment