Skip to content

Instantly share code, notes, and snippets.

@benjamincharity
Created February 16, 2013 17:49
Show Gist options
  • Save benjamincharity/4967882 to your computer and use it in GitHub Desktop.
Save benjamincharity/4967882 to your computer and use it in GitHub Desktop.
Micro clearfix hack SCSS mixin.
// Micro clearfix hack
// http://nicolasgallagher.com/micro-clearfix-hack/
@mixin clear {
&::before, &::after {
content: "\0020";
display: table;
}
&:after { clear: both; }
@if $ie7-support {
& { zoom: 1; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment