I can't quite get my head around this (hopefuly) related question:
If I have a table containing rows of cells which may contain checkbox input fields, how can I configure the CSS so that the background colour of the row depends on whether the checkbox is ticked?
I guess it's something like tr + td + input[type=checkbox]:checked { background-color: red; } but I haven't quite worked it out yet.
Basically I want ticking the checkbox (which is at the far right of a row) to highlight the whole row to make it obvious which row has been selected. It sounds like the right combination of siblings and selectors would do this.