How to Target a Range of Tables by id
-
Hello Tobias,
First of all, you have created a Great plugin – Worthy of a PhD candidate! Thank you so very much.Now, one thing I haven’t been able to figure out: How to target a whole range of tables instead of repeating the code for each table?
For example, I have this code in the ‘Custom CSS’:
.tablepress-id-3 tbody>tr>:nth-child(2) {
text-align: left !important;
}.tablepress-id-3 tbody>tr>:nth-child(n+3):nth-child(-n+15) {
text-align: right !important;
}If I have to apply this same style in 30 tables, and another style in the rest of the tables, can we consolidate the code and use something like this:
“.tablepress-id-3-30” OR “.tablepress-id-3,4,5,…,30”
I tried various ways — didn’t work. Is there a way so that we don’t have to add the same code for each table 30 times?
Thank you for your help.
The page I need help with: [log in to see the link]
- The topic ‘How to Target a Range of Tables by id’ is closed to new replies.