Answers for "alternate color on two consecutive rows"

CSS
0

alternate color on two consecutive rows

tr {
    background: blue;
}

tr:nth-child(4n+1), tr:nth-child(4n+2) {
    background: red;
}
Posted by: Guest on August-07-2020

Code answers related to "alternate color on two consecutive rows"

Browse Popular Code Answers by Language