snipt

Ctrl+h for KB shortcuts

CSS

pad images nicely on website css

1
2
3
4
img {
        padding: 10px;
        margin: 5px;
}
https://snipt.net/embed/5626de5cb19e493660a42d628b20a434/
/raw/5626de5cb19e493660a42d628b20a434/
5626de5cb19e493660a42d628b20a434
css
CSS
4
2019-07-18T00:33:40
True
False
False
/api/public/snipt/858/
pad-images-nicely-on-website-css
<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></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="nt">img</span> <span class="p">{</span> </span><span id="L-2"><a name="L-2"></a> <span class="nb">padding</span><span class="o">:</span> <span class="m">10px</span><span class="p">;</span> </span><span id="L-3"><a name="L-3"></a> <span class="nb">margin</span><span class="o">:</span> <span class="m">5px</span><span class="p">;</span> </span><span id="L-4"><a name="L-4"></a><span class="p">}</span> </span></pre></div> </td></tr></table>
css, image, img, padding, web