Use :nth-child() CSS selector.

Use CSS instead of enumerating rows directly in PHP.