I am trying to have alternate background colour for each . I understand i can use:
tr:nth-child(even) {
background-color: #000000;
}
As another stack question says, however, that only works if we have same number of <td>
s, but in case we have different number of them, we won't have a full coloured row but it will rather stop to the last td.
Is there way I could do it with only css or any jQuery in regards?