#1518: Use odd/even classes instead of nth-child.

Nth-child is unreliable when the number of elements on the page changes.