Change Target Cell Hover Color
-
Hey Tobias, I currently have Tablepress set up here and basically want the boxes with green background colors to stay green whenever the mouse hovers over their rows.
I tried using the code below and I swear it was working for a while, but it’s not today. Is this correct?
.tablepress-id-2 .row-15 .column-2 tr:hover td {background-color: #0F0 !important;}
Also this might seem like an odd question, but in setting those cell background colors to green, should I be allowed to lump all of their calls into one?
For instance in order for the cells to be green, I have to do the following:
/*winners*/ .tablepress-id-2 .row-15 .column-2 {background-color: #0F0 !important;} .tablepress-id-2 .row-8 .column-5 {background-color: #0F0 !important;} .tablepress-id-2 .row-10 .column-5 {background-color: #0F0 !important;}
Notice they’re all on separate calls. If I lump them together with commas (like below), it doesn’t seem to work. Does this seem odd or normal?
/*winners*/ .tablepress-id-2 .row-15 .column-2, .tablepress-id-2 .row-8 .column-5, .tablepress-id-2 .row-10 .column-5 {background-color: #0F0 !important;}
- The topic ‘Change Target Cell Hover Color’ is closed to new replies.