Skip to content
This repository
Thomas Kenny May 29, 2013
file 24 lines (21 sloc) 0.515 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
// Modern micro clearfix provides an easy way to contain floats without adding additional markup.
//
// Example usage:
//
// // Contain all floats within .wrapper
// .wrapper {
// @include clearfix;
// .content,
// .sidebar {
// float : left;
// }
// }

@mixin clearfix {
  &:after {
    content:"";
    display:table;
    clear:both;
  }
}

// Acknowledgements
// Beat *that* clearfix: [Thierry Koblentz](http://www.css-101.org/articles/clearfix/latest-new-clearfix-so-far.php)
Something went wrong with that request. Please try again.