Hi,
thanks for your post, and sorry for the trouble.
To add border lines between all cells, you can use CSS code. For example, add this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:
.tablepress thead th,
.tablepress tbody td {
border: 1px solid #cccccc;
}
Regards,
Tobias
I use tables without a header. When I use the above code, the top-most border of my tables are not visible. All other borders are visible. Can you give the similar code for a header-less table.
Thanks!
This one did the trick:
.tablepress tr,
.tablepress tbody td,
.tablepress thead th,
.tablepress tfoot th {
border: 1px solid #cccccc;
}
Got it from the FAQ page.
Is it necessary to use .tablepress at the top of the above code as mentioned in the FAQ?
.tablepress tr,
.tablepress tbody td {
border: 1px solid #cccccc;
}
The above seems to be the minimum requirements to show all borders for a header-less table.
-
This reply was modified 9 years, 6 months ago by
Bradex.
Hi,
no, the .tablepress is not always necessary. The exact selectors depend on the theme, and this example simply tries to catch everything.
Good to hear that you found a solution for your table! 🙂
Best wishes,
Tobias
Thank you Tobias!
Cheers to the best plugin and the best plugin author I’ve met in WP! 🙂
Hi,
no problem, you are very welcome! 🙂 Good to hear that this helped!
Best wishes,
Tobias
Hello Tobias,
For NISARG theme i am using , what Custom CSS you would suggest to get grid lines in table press ?
Best regards
SEbastien
Just tried your first above formula, and it worked !
Many tks
Best regards
Sebastien
Hi,
great! Good to hear that you found the solution already!
Best wishes,
Tobias