How to change background colour for a row except the first cell
-
Hi,
I am trying to make the first column the same colour, and rows 1 and 2 another colour. However, as you can see in the table in the url provided, the second row column 1 cell is not same as the colour of column 1. The CSS I use as below:
`.tablepress-id-1 .column-1 {
background-color: #A6D4EA !important;
}.tablepress-id-1 .row-2 td {
background-color: #D9EDF7 !important;
}.tablepress-id-1 .column-1 .row-2 {
background-color: #A6D4EA !important;
}What should I do to make that cell have the same background colour as the column 1?
And you may also find that I need to use !important to make the other background-color change to my preferred colour, I wonder why is it like this as I expected the CSS should work well without !important.The page I need help with: [log in to see the link]
- The topic ‘How to change background colour for a row except the first cell’ is closed to new replies.