Changing table color when Datatables turned on
-
If I don’t have the Use DataTables box checked, then I can control the background color of my tables. But if I want to enable “search” then I have to check that box and then the background color setting is ignored. The referenced webpage shows examples of both tables. Can you help?
The table that works is Table 11. The other is Table 12. Here is the relevant CSS that I’m using:
.tablepress thead th,
.tablepress tfoot th {
background-color: #000000;
}.tablepress-id-12 th,
.tablepress-id-12 td {
border: 1px solid #cccccc;
}.tablepress-id-12 .column-1 {
width: 100px;
}.tablepress-id-12 .column-2 {
width: 100px;
}.tablepress-id-12 .column-3 {
width: 125px;
}.tablepress-id-12 .column- {
width: 100px;
}.tablepress-id-11 th,
.tablepress-id-11 td {
border: 1px solid #cccccc;
}.tablepress-id-11 .column-1 {
width: 100px;
}.tablepress-id-11 .column-2 {
width: 100px;
}.tablepress-id-11 .column-3 {
width: 125px;
}.tablepress-id-11 .column- {
width: 100px;
}Thanks again.
The page I need help with: [log in to see the link]
- The topic ‘Changing table color when Datatables turned on’ is closed to new replies.