If you are talking about computing efficiency (i.e. browser performance), I suggest sticking with what you already have. Otherwise...
If you know that the class attribute always starts with the substring myTable , you can simply use the attribute selector:
[class^="myTable"] a { text-decoration: underline; }
If you cannot guarantee that you need something more complex:
[class^="myTable"] a, [class*=" myTable"] a { text-decoration: underline; }
An explanation is offered here . If you find this syntax secret, then again I offer you what you already have as the simplest.
Alternatively, modify your HTML to include a generic class that you can choose from. This will allow you to simplify CSS even more of what you already have.
source share