<p>Clear floats by adding <code class="code-inline-preview">-clearfix</code> to the parent element</p>
<pre class="code-preview"><div class="-clearfix">
...
</div></pre>
<p>Can also be used as a mixin include</p>
<pre class="code-preview">.element {
@include clearfix;
}</pre>
<p>Clear floats by adding <code class="code-inline-preview">-clearfix</code> to the parent element</p>
{{render '@helper-code-preview' parent}}
<p>Can also be used as a mixin include</p>
{{render '@helper-code-preview' mixin}}
{
"parent": {
"snippet": "<div class=\"-clearfix\">\n ...\n</div>"
},
"mixin": {
"snippet": ".element {\n @include clearfix;\n}"
}
}
/* Clearfix */
.-clearfix {
@include clearfix();
}
There are no notes for this item.