Accoutrement 2.1.1

@mixin clearfix()

A small, unobtrusive clearfix for float containers.

Map Properties & Output

{CSS output} (code block)

  • Micro-clearfix hack to help with floated elements

Example

scss
body {
  @include clearfix;
}
css compiled
body::after {
  clear: both;
  content: ' ';
  display: block;
}