html - Css nth-child works strange -
i try make striped table. when try use nth-child, works strange
template:
... <tr class="striped">...</tr> <tr class="more">...</tr> ...
css:
tr.striped:nth-child(odd) { background-color : rgba($maincolor, .1); }
but tr striped class colored. maybe miss feature of specification?
use :
tr:nth-child(4n+1)
instead of:
tr.striped:nth-child(odd)
Comments
Post a Comment