Skip to content

Instantly share code, notes, and snippets.

@pablolobos
Created July 23, 2013 16:21
Show Gist options
  • Select an option

  • Save pablolobos/6063788 to your computer and use it in GitHub Desktop.

Select an option

Save pablolobos/6063788 to your computer and use it in GitHub Desktop.
mixin: clearfix-extend
%clearfix {
*zoom: 1;
&:before, &:after {
content: " ";
display: table;
}
&:after {
clear: both;
}
}
//Usage
.container-with-floated-children {
@extend %clearfix;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment