I have the following CSS class selector which will select all <td>
children of even <tr>
children of <tbody>
where <tr>
belongs to any class ending in 2:
.table-striped > tbody > tr:nth-child(2n)[class$='2'] > td{
background-color: #FFF7C7;
}
What I would like to do is select all <td>
children of even <tr>
children of <tbody>
where <tr>
belongs to any class ending in an even number up to but not including 10. I hoped I could do something to the effect of:
.table-striped > tbody > tr:nth-child(2n)[class$=('2' || '4' || '6' || '8')] > td{
background-color: #FFF7C7;
}
So my question is, how do I implement an OR case in the class ends with selector?
For reference here is a sample of the HTML (I would like to select all <td>
of the first two rows.):
<tbody>
<tr class="ctgry_2"><td>Data</td><td>Data</td><td>Data</td></tr>
<tr class="ctgry_6"><td>Data</td><td>Data</td><td>Data</td></tr>
<tr class="ctgry_3"><td>Data</td><td>Data</td><td>Data</td></tr>
</tbody>