Change padding of table
-
Hi Tobias,
I tried to change the padding of all cells in my table which has 5 rows (first row is th followed by td for subsequent rows) to 5px in the Custom CSS using:
.tablepress-id-N th,
.tablepress-id-N td {
padding: 5px;
}… but it didn’t work.
When I make the changes individually like this:
.tablepress-id-N .row-1 th,
.tablepress-id-N .row-2 td,
.tablepress-id-N .row-3 td,
.tablepress-id-N .row-4 td {
padding: 5px;
}… it worked. I mean, there should be a technique to change the entire cells in a table, right? How to achieve that? Please advise. Thank you for your time.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Change padding of table’ is closed to new replies.