Okay, I have the following CSS:
.gridViewStyle tr th, .gridViewStyle tr td {
padding: 5px;
}
And it’s working as expected and applying the padding to both the th and td elements. However, do I really have to declare the fully qualified path multiple times? Or in other words, is there a more concise way of doing the same thing?
UPDATE
SPECIFICITY
In regards to specificity, I cannot have this applied to other tables, it must strictly be applied to the grid view with this CSS class.
Depending on specificity, you don’t need anything more than
th {ortd {.It just depends if you have another table or not.
th, td {would be the shortest way if you don’t. If you do, thattris doing nothing (as allthandtdshould be inside a row, so remove it)