Changing background colour for a number of cells in a row, keeping the borders
-
Hello
I love this plug-in – thanks!
I have a seed company and am using the table to make calenders for sowing, transplanting and harvesting of crops. I need to cells to be coloured differently for each crop to show when to do certain things etc.
Is there an efficient way to do this? I will have over 40 calenders to make to the custom css sheet will be very long and difficult to navigate. At the moment i am doing something like this for each calender:
/* Tomato */
.tablepress-id-1 .row-2 .column-2 {
background-color: #ffe202;
color: #ff0000;
}.tablepress-id-1 .row-2 .column-3 {
background-color: #ffe202;
color: #ff0000;
}.tablepress-id-1 .row-2 .column-4 {
background-color: #ffe202;
color: #ff0000;
}.tablepress-id-1 .row-2 .column-5 {
background-color: #ffe202;
color: #ff0000;
}.tablepress-id-1 .row-3 .column-5 {
background-color: #668e32;
color: #ff0000;
}.tablepress-id-1 .row-3 .column-6 {
background-color: #668e32;
color: #ff0000;
}.tablepress-id-1 .row-3 .column-7 {
background-color: #668e32;
color: #ff0000;
}.tablepress-id-1 .row-3 .column-8 {
background-color: #668e32;
color: #ff0000;
}.tablepress-id-1 .row-4 .column-7 {
background-color: #d86b01;
color: #ff0000;
}.tablepress-id-1 .row-4 .column-8 {
background-color: #d86b01;
color: #ff0000;
}.tablepress-id-1 .row-4 .column-9 {
background-color: #d86b01;
color: #ff0000;
}.tablepress-id-1 .row-4 .column-10 {
background-color: #d86b01;
color: #ff0000;
}.tablepress-id-1 .row-4 .column-11 {
background-color: #d86b01;
color: #ff0000;
}The page I need help with: [log in to see the link]
- The topic ‘Changing background colour for a number of cells in a row, keeping the borders’ is closed to new replies.