Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

alternate color on two consecutive rows

tr {
    background: blue;
}

tr:nth-child(4n+1), tr:nth-child(4n+2) {
    background: red;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #alternate #color #consecutive #rows
ADD COMMENT
Topic
Name
2+5 =