I'm using a main stylesheet on a webpage which contains this CSS argument for tables:
tr:nth-child(2n) {
background-color:#fff;
}
I now came along an individual case with this nested structure: span > ol > li > ol > li > table > tr. How can I address the tr of the table to assign
tr {
background-color:none;
}
to it? I already tried
#spanclass ol li > ol li > tr {
background-color:none !important;
}
where "spanclass" would be the class of the span, but with no avail. This CSS construct also didn't work:
#spanclass > tr {
background-color:none !important;
}
Using a specific class for the mentioned tr didn't help either.
How can I solve this issue?
Thanks in advance!
Edit: This is the relevant HTML part. I replaced the original text from the page to keep it short.
<span class="spanclass">
Lorem ipsum
<ol type="I">
<li>Lorem ipsum</li>
<li>
Lorem ipsum
<ol type="a">
<li>Lorem ipsum</li>
<li>Lorem ipsum</li>
<li>
Lorem ipsum
<div class="table-responsive">
<table class="w-auto mw">
<tr>
<td>Lorem ipsum</td>
<td>Lorem ipsum</td>
<td>Lorem ipsum</td>
<td class="td-right">Lorem ipsum</td>
</tr>
<tr class="tr-bgr">
<td>Lorem ipsum</td>
<td>Lorem ipsum</td>
<td>Lorem ipsum</td>
<td class="td-right">Lorem ipsum</td>
</tr>
</table>
</div>
</li>
</ol>
</li>
</ol>
</span>