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;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.