Text alignment in columns
-
Hi
I have created a table where I want the text in the left column to be aligned left and all other columns aligned center. The only CCS that I have found that seems to works is:
.tablepress thead th { background-color: transparent; text-align: center; } .tablepress .column-1 td { text-align: left; } .tablepress .column-1 { width: 300px; } .tablepress-id-1 .column-2 { text-align: center; } .tablepress-id-1 .column-3 { text-align: center; }
As you can see you have to virtually add the same code for each column. I have tried:
.tablepress-id-1 .column-2 .column-3 .column-4 { text-align: center; }
But that doesn’t seem to work. Is there a tidy way of achieving this?
Thanks in advance.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Text alignment in columns’ is closed to new replies.