I have a main table (Maintable) containing information, with each row having a sub-table for additional details that can be collapsed if needed. I am trying to stripe the rows in the Main table but using `tr:nth-child(even)` is not working as it also affects the sub-table rows.
Is there a way to only apply the striping to the rows in the "Maintable" without affecting the sub-table rows? See example below:
<table class="maintable_use_for_striped">
<tr>
<td>Hr.</td>
<td>Blub</td>
<td><a role="button" class="btn btn-primary collapsed" data-toggle="collapse" href="#collapse_96" aria-expanded="false" aria-controls="collapseExample">mehr</a></td>
</tr>
<tr>
<td colspan="11" class="collapseTd">
<div class="additonalInformation collapse" id="collapse_96" aria-expanded="false" style="height: 0px;">
<table class="subtable_use_not_for_striped">
<tbody>
<tr>
<td>Content 1</td>
</tr>
<tr>
<td>Content 2</td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</table>