How do I alternate HTML table row colors using JSP?
My CSS looks something like:
tr.odd {background-color: #EEDDEE} tr.even {background-color: #EEEED
Just do like this and is going to work:
table tr:nth-child(odd) { background-color: #ccc; }