snipt

Ctrl+h for KB shortcuts

CSS

Box-sizing reset

/* apply a natural box layout model to all elements - paulirish.com */
* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }
https://snipt.net/embed/ba58b6bdec613e400c161e1cd265c83a/
/raw/ba58b6bdec613e400c161e1cd265c83a/
ba58b6bdec613e400c161e1cd265c83a
css
CSS
2
2019-08-18T04:54:20
True
False
False
/api/public/snipt/41062/
box-sizing-reset
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c">/* apply a natural box layout model to all elements - paulirish.com */</span> </span><span id="L-2"><a name="L-2"></a><span class="o">*</span> <span class="p">{</span> <span class="o">-</span><span class="n">moz</span><span class="o">-</span><span class="n">box</span><span class="o">-</span><span class="n">sizing</span><span class="o">:</span> <span class="nb">border</span><span class="o">-</span><span class="n">box</span><span class="p">;</span> <span class="o">-</span><span class="n">webkit</span><span class="o">-</span><span class="n">box</span><span class="o">-</span><span class="n">sizing</span><span class="o">:</span> <span class="nb">border</span><span class="o">-</span><span class="n">box</span><span class="p">;</span> <span class="n">box</span><span class="o">-</span><span class="n">sizing</span><span class="o">:</span> <span class="nb">border</span><span class="o">-</span><span class="n">box</span><span class="p">;</span> <span class="p">}</span> </span></pre></div> </td></tr></table>