Some options:
1. ~
selector - http://jsfiddle.net/5sKqX/
.new-items-table tr ~ tr:nth-of-type(odd) {background-color:red;}
It matched tr
s that are after other tr
s, so it skips the header row.
2. use <thead>
- http://jsfiddle.net/5sKqX/1/
<thead>
<tr><th>Header</th></tr>
</thead>
<tbody>
<tr><td>1</td></tr>
<tr><td>2</td></tr>
<tr><td>3</td></tr>
</tbody>
Css:
.new-items-table tr:nth-of-type(even) {background-color:red;}
3. use :not(:first-child)
- http://jsfiddle.net/5sKqX/2/
.new-items-table tr:nth-of-type(odd):not(:first-child) {background-color:red;}