Table auto width and centering does not work
-
For all our Tables we want to center the table, not the content in the cells, and if we have enough screen width we do not want the rows to line break within a cell.
As it is now the table is aligned to the left of the page, and some but not all cells have line breaks, which is silly since we have plenty of space on the page so the cells should not need to be line broken.
So we have read the FAQ (https://tablepress.org/faq/) and we have read the documentation (https://tablepress.org/documentation/) and we have Googled (duh!), and what we have understood is that this something we should be able to use the “Plugin Option” – “Custom CSS” to solve. But we fail to understand how.
We have tried this:
.tablepress-id-N { width: auto !important; margin: 0 auto 1em; }
(One of these per table ID)
and we also have tried this:
.tablepress { width: auto !important; margin: 0 auto 1em; }
But we have not seen any change. None of the tables are centered, and none of the cells where we see line breaks are “fixed”. What are we doing wrong?
Another option for us would be to have the table use e.g. 80% of the page/frame width, so how can that be achieved?
What can we do now? Any suggestions?
Thanks in advance
- The topic ‘Table auto width and centering does not work’ is closed to new replies.