I have a table class that I would like to add specific td and th
styles to.
I can do this:
table.mytable { ... }
table.mytable th { ... }
table.mytable td { ... }
but the th and td are going to be styled identically. I found
that doing
table.mytable { ... }
table.mytable th, table.mytable td { ... }
(In this case, I'm trying to style cell borders differently
from the table border, as well as specifying different margins
and padding in the cells compared to the table as a whole.)
worked, but it seems that there ought to be a way of simplifying
even this. Is there (again, assuming that the th and td styles
are going to be identical in this instance)?