Centering text in select columns
-
Hi Tobias,
I’ve put TablePress to good use, having created over 200 tables for a new section in the works for our website. Here’s an example:
https://www.seahawkslegends.com/1977-seattle-seahawks/
I’ve been using the <center></center> tags on text items in select columns on the shorter tables; but the team roster pages have a lot of rows. I would like to use some css to center the text in selected columns, for example from the above page link: No., Age, Position, G, GS, and Years. Going through the support threads I found an entry with this snippet:
.tablepress-id-12 .column-1 {
vertical-align: middle;
}So checking to see if this is close to what I need, and if so, can it be modified to handle all the Team Roster tables at once, instead of having to use id-12, id-13, etc., for each Roster table? And how would this be extended for selected columns? Something like:
.tablepress-id-12 .column-1 {
vertical-align: middle;
.column-4 {
vertical-align: middle;
.column-5 {
vertical-align: middle;
}etc.?
The .csv spreadsheet upload option sure works great to get the team rosters up.
Thanks!
- The topic ‘Centering text in select columns’ is closed to new replies.