DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
4+5 =
Submit