Set background to even rows

Style table tr:nth-child(even) is setting style to every even row. If you want to set style to odd rows you should use nth-child(odd).