snipt

Ctrl+h for KB shortcuts

Text only

Shortest Clearfix ever

1
2
3
4
5
.cf:after {
    content:"";
    clear:both;
    display:table;
}
https://snipt.net/embed/117fdbfb9fce09c89a66a0d299e35ad1/
/raw/117fdbfb9fce09c89a66a0d299e35ad1/
117fdbfb9fce09c89a66a0d299e35ad1
text
Text only
5
2019-07-16T04:15:11
True
False
False
/api/public/snipt/136023/
shortest-clearfix-ever-fd450953
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>.cf:after { </span><span id="L-2"><a name="L-2"></a> content:&quot;&quot;; </span><span id="L-3"><a name="L-3"></a> clear:both; </span><span id="L-4"><a name="L-4"></a> display:table; </span><span id="L-5"><a name="L-5"></a>} </span></pre></div> </td></tr></table>
css