MvcRazorToPdf alternating table row styles

533 views Asked by At

I have a table that shows and hides certain rows based on some data, so I was hoping to do the row style with CSS, a la:

tr:nth-child(odd) { background-color:#eee; }
tr:nth-child(even) { background-color:#fff; }

However, it seems MvcRazorToPdf can't apply these styles correctly to a table. Does anyone know how this can be done or why it won't work with MvcRazorToPdf?

0

There are 0 answers