TablePress ignoring column width setting.
-
I have a two-column table (ID=1 in the code below), which has a 225px wide photo at the top in row one, followed by two rows of text. The third row is a person’s biography, and due to the size of the font, it looks like the text from bio 1 is running into bio 2, rather than straight down.
Tried controlling that with custom css in the TablePress plug-in, telling it that that text in the column should also be 225px wide max. However, it seems to be ignoring it at this point. Below is the full custom text, in case someone sees something that’s rewriting the row width for some reason.
.tablepress-id-1 .column-1, .tablepress-id-1 .column-2 { width: 225px !important; } .tablepress-id-1, .tablepress-id-2, .tablepress-id-3, .tablepress-id-4 { margin: 0; border: 0; border-bottom: none !important; background-color: transparent; } .tablepress-id-1, .tablepress-id-1 tbody, .tablepress-id-1 tr, .tablepress-id-1 tbody td, .tablepress-id-1 thead th, .tablepress-id-1 tfoot th, .tablepress-id-2, .tablepress-id-2 tbody, .tablepress-id-2 tr, .tablepress-id-2 tbody td, .tablepress-id-2 thead th, .tablepress-id-2 tfoot th, .tablepress-id-3, .tablepress-id-3 tbody, .tablepress-id-3 tr, .tablepress-id-3 tbody td, .tablepress-id-3 thead th, .tablepress-id-3 tfoot th, .tablepress-id-4, .tablepress-id-4 tbody, .tablepress-id-4 tr, .tablepress-id-4 tbody td, .tablepress-id-4 thead th, .tablepress-id-4 tfoot th { border: none; padding: 4px !important; } .tablepress-id-1 .row-1 td, .tablepress-id-1 .row-2 td, .tablepress-id-2 .row-1 td, .tablepress-id-2 .row-2 td, .tablepress-id-3 .row-1 td, .tablepress-id-3 .row-2 td, .tablepress-id-4 .column-1, .tablepress-id-4 .column-2, .tablepress-id-4 .column-3 { text-align: center; border: none; background-color: transparent; } .tablepress-id-1 .row-3 td, .tablepress-id-2 .row-3 td, .tablepress-id-3 .row-3 td { text-align: justify; border: none; background-color: transparent; } .tablepress-id-1 th, .tablepress-id-1 td, .tablepress-id-2 th, .tablepress-id-2 td, .tablepress-id-3 th, .tablepress-id-3 td, .tablepress-id-4 th, .tablepress-id-4 td { font-family: 'Open Sans', arial, serif; font-weight: 600; }
The topic ‘TablePress ignoring column width setting.’ is closed to new replies.