im not very good with css and i need some help.
i have a table where i want every other row to be gray and the alternating rows to be white. but i only want it to happen on one particular table.
i added some code to my css:
tr:nth-child(even) {
background: #CCC;
}
tr:nth-child(odd) {
background: #FFF;
}
but the problem is that its affecting every table on my site. i havent found any examples where it applies only to a certain class. is that possible? i want it to apply only to:
table.dashboardtable