Custom CSS with overwrite
-
Hello Tobias,
I would like a little help again please…
I have a custom CSS rule called ‘colstablecurr’ with the following code…
.colstablecurr,
.colstablecurr tr,
.colstablecurr tbody td,
.colstablecurr thead th,
.colstablecurr tfoot th {
border: 1px solid #000000 !important;
text-align: center;
vertical-align: middle;
background-color: #ffffff;
font-size: 22px;
}.colstablecurr tr {
height: 25px;
}.colstablecurr td {
width: 10%;
padding: 5px !important;
}.colstablecurr .row-1 td,
.colstablecurr .row-5 td,
.colstablecurr .row-9 td,
.colstablecurr .row-13 td,
.colstablecurr .row-17 td {
background-color: #CB5920;
color: #ffffff !important;
}.colstablecurr .row-4 td,
.colstablecurr .row-8 td,
.colstablecurr .row-12 td,
.colstablecurr .row-16 td {
border-left: 1px solid #ffffff !important;
border-right: 1px solid #ffffff !important;
}I am sure this could be simplified but I have added parts along the way…
This code is applied to several tables as a theme for my site.
However…
I then want to add the following CSS to a table with ID 24 that also uses the above CSS…basically I want the following CSS to overwrite the above entry relating to font align: center
.tablepress-id-24 .row-3 .column-1 td {
text-align: center important!;
}Yet it does nothing… I can seem to put any CSS in there and the table only responds to the code added to ‘colstablecurr’
What is my silly mistake?
Many thanks,
Colin
- The topic ‘Custom CSS with overwrite’ is closed to new replies.