Monday, October 6, 2014

Alternate table td color using nth child

Use css nth child to alternate the colors on a table's td
 table tr:nth-child(odd){ background-color:#D6E8FC; }
 table tr:nth-child(even){ background-color:#fff; }

No comments:

Post a Comment