Hi Mitch,
thanks for your post, and sorry for the trouble.
The reason for this is just a small syntax error: The comma before the {.
Commas must only be used to combine multiple selectors, but not before the {.
Thus,
.tablepress-id-2 .row-1 .column-1 {
text-align: center !important;
}
should work.
Regards,
Tobias
DOH!
This is what happens when you stare at CSS way too long … you miss something so simple.
Thanks Tobias!
Hi,
no problem, you are very welcome! 🙂 Good to hear that this helped!
Best wishes,
Tobias
P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!
Hi,
sorry to hijacking the thread but:
How to center every row and column of the table, not just row-1 column-1?
Regards,
Susi
Hi Susi,
you would use
.tablepress-id-123 th,
.tablepress-id-123 td {
text-align: center;
}
for that (with 123 being that table ID, or by removing the -id-123 part altogether to have this apply to all tables at once).
Regards,
Tobias
Awesome. Thanks for quick response. Works fine.
Best wishes,
Susi
Hi,
no problem, you are very welcome! 🙂 Good to hear that this helped!
Best wishes,
Tobias
P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!