Hi Tobias,
thanks for responding. I managed to get it to work with the following css
.tablepress.table1 tr.row-16 a,
.tablepress.table1 tr.row-18 a {
padding: 5px 5px;
padding-left: 15px;
padding-right: 15px;
background-color: #EC64AD;
border: 1px solid #555;
border-radius: 5px;
font-size: 16px;
color: white;
text-decoration: none;
}
I have another problem I wondered if you could help with.
It is regarding the table on this page
https://womenlovecycling.com/uncategorized/gravel-bikes-under-1500/
some of the rows have text across 2 lines. I have tried adjusting the padding in the table and the headers but I cant get the text on the table to be on one line and at the same time have the header be along 2 lines. If I adjust the padding on the header the header then goes across 3 or 4 lines. If I adjust the padding in the table rows it just makes the whole table longer but doesnt put the text across 1 line.
I have also tried setting the column widths but that does not keep the heading accross 2 lines.
Thanks for your help
Below is the CSS I am using for the padding
.tablepress-id-4 tr.row-16 td,
.tablepress-id-4 tr.row-18 td {
padding-bottom: 5px !important;
padding-top: 5px !important;
}
.tablepress-id-4 column-2,
.tablepress-id-4 column-3,
.tablepress-id-4 column-4,
.tablepress-id-4 column-5,
.tablepress-id-4 column-6,
.tablepress-id-4 column-7,
.tablepress-id-4 column-8,
.tablepress-id-4 column-9 {
padding-left: 80px;
padding-right: 80px;
}
.tablepress-id-4 td {
padding-bottom: 1px !important;
padding-top: 1px !important;
}
.tablepress-id-4 column-1 {
padding-left: 0 !important;
padding-right: 0 !important;
}
.tablepress thead th,
.tablepress tfoot th {
background-color: #ffa4c2;
color: #2d2d2d;
font-size: 16px;
font-weight: bold;
padding-top: 5px !important;
padding-bottom: 0 !important;
padding-left: 5px !important;
padding-right: 5px !important;
}`