Hi,
thanks for your post, and sorry for the trouble.
Normally, something like
.tablepress td {
border: 1px solid #cccccc !important;
}
should add a top border to every row.
Regards,
Tobias
Thread Starter
raltok
(@raltok)
Hey Tobias,
Thanks for the reply.
I’m using a 5 row x 2 column table. I would like to add a black solid border to the top and button of the table (there are no borders for columns, and I’m using a light grey, thinner border for inner rows). Hope that’s clearer. Thanks for your help!
Hi,
Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!
Regards,
Tobias
Thread Starter
raltok
(@raltok)
It is not a problem, we would just like the code to add a top border to the top row if that’s possible.
Hi,
maybe something like
.tablepress {
border-top: 1px solid #000000 !important;
border-bottom: 1px solid #000000 !important;
}
then.
Regards,
Tobias
Thread Starter
raltok
(@raltok)
Hey Tobias,
Thanks a lot for this, it works. How can I decrease the height of the rows, and also make the top and button border a bit ticker?
Thank you
Hi,
maybe try
.tablepress {
border-top: 3px solid #000000 !important;
border-bottom: 3px solid #000000 !important;
}
for a thicker border.
To reduce the height, try
.tablepress th,
.tablepress td {
padding: 6px !important;
}
Regards,
Tobias
Hi,
no problem, you are very welcome! 🙂 Good to hear that this helped!
Best wishes,
Tobias
P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!