table.tba tr.tri0 { } table.tba tr.tri1 { background-color: #F0F8FF; }
<tr class="tri{position() mod 2}">