How can I select all tr elements except the first tr in a table with CSS?
tr
I tried using this method, but found that it did not work.
By adding a class to either the first tr or the subsequent trs. There is no crossbrowser way of selecting the rows you want with CSS alone.
However, if you don't care about Internet Explorer 6, 7 or 8:
tr:not(:first-child) { color: red; }
548k questions
547k answers
4 comments
86.3k users