How to Update and Customize Table Padding or Borders in CSS

Created on 18 June 2024, 6 months ago
Updated 27 June 2024, 6 months ago

In my site I have many tables with border or without border.

border 1

The vertical edges have a different color from the others (fig. 1).
It's not a problem, but if they were the same color it would be better.

border 0

With border 0 there should be no border and instead there is the bottom border (fig. 2).
Compare:
https://www.gmpe.it/link/gruppi-mineralogici-paleontologici
https://prova.gmpe.it/link/gruppi-mineralogici-paleontologici
How do I delete it?

padding

The cells do not have left and right padding so the text is attached to the border.
Compare the test sites:
http://testns.gmpe.it/node/22
http://testns.gmpe.it/cms/prova

I was thinking of inserting like on the old site:

table tr td th {
 padding: 4px 6px!important;
}

but it does not work.

Thanks and best regards

💬 Support request
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇹Italy giordy

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024