I have a HTML table with around 100 rows. I want to color some group of rows differently. For example row 1-10 red, row 20-40 blue and so on.
I think I can do it with nth-child
but that's a lot of code I think, if I want to select the table rows from 20-50. Is there a way to like select the rows 20-50 and give them a color?
<table id="table">
<tr>
<!-- content -->
</tr
<!-- 100 tr elements -->
</table>