I have rows like this:
<tr class="team_2">Team Member</tr>
<tr class="team_2">Team Member</tr>
<tr class="team_1">Team Member</tr>
<tr class="team_2">Team Member</tr>
<tr class="team_1">Team Member</tr>
I want to highlight the first member of each team as team captain. I tried this:
table tbody tr.team_2:first-of-type, table tbody tr.team_1:first-of-type {
background: red;
}
This highlighted the first row, but not the third row (captain for team 1). Is this type of selector possible?