/* for ODD row alternation */ tr:nth-child(odd) {background:#f6f6f6} /* for EVEN alternation */ tr:nth-child(even) {background:#f6f6f6}