ruk·si

💅 SASS
Clearing Floats

Updated at 2015-01-14 08:43
/// Helper to clear inner floats
/// @author Nicolas Gallagher
/// @link http://nicolasgallagher.com/micro-clearfix-hack/ Micro Clearfix
@mixin clearfix {
    &::after {
        content: '';
        display: table;
        clear: both;
    }
}
.container {
    @include clearfix();
}

Sources