I discovered a quick and simple way to make all of the text centered in an entire column of a TablePress table. Definitely saves time so that we don’t have to make each cell in a column centered!
This is how you take care of it all in one fell swoop – add this bit of code to your Plugin Options section:
.tablepress .column-1 {
text-align: center;
}
Voila! Super simple, and very handy.
Omg I was lost in tons of css tricks with dozens of line code and BAM
Two lines answer !
Thank for this tip !
Thank you for your explanation, however, this did not work for me. I added those 2 lines in the extra css but it didn’t work and when I try to save I get: “The entered value in the field “Extra CSS classes” is invalid.”.
Where do you place those 2 lines?
OK, found it!
Thank you.
Is there a way to center all the columns without repeating this CSS?
Hi Marina,
Not that I know of, but it’s been a while since I worked with Tablepress so I’d look up their documentation and see if there is a way.
thank you!