ul.first
li 1
li 2
li 3
li 4
li 5
ul.second
li 1
li 2
li 3
li 4
li 5
View Compiled
.first :nth-child(odd) {
color: red;
}
.second :nth-child(even) {
color: green;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.