snipt

Ctrl+h for KB shortcuts

CSS

Zebra rows table

#nomeTabella tr:nth-child(even) {background: #eee}
https://snipt.net/embed/0fa1174f735552b48010d7d2a92e0210/
/raw/0fa1174f735552b48010d7d2a92e0210/
0fa1174f735552b48010d7d2a92e0210
css
CSS
1
2016-12-25T10:50:23
True
False
True
Nov 16, 2012 at 06:35 AM
/api/public/snipt/41962/
righe-tabella-alternate-a-zebra
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="nn">#nomeTabella</span> <span class="nt">tr</span><span class="nd">:nth-child</span><span class="o">(</span><span class="nt">even</span><span class="o">)</span> <span class="p">{</span><span class="nb">background</span><span class="o">:</span> <span class="m">#eee</span><span class="p">}</span> </span></pre></div> </td></tr></table>
css