Forgive me for asking what may seem like a simple question. I am currently using the CSS code below to modify the background color of a label when its associated checkbox is checked:
#project input[id="button1"]:checked + label {background-color:red;}
Is it also possible to change the background color of the entire page when id="button1"
is checked? I attempted to add to the existing line and tried a new one, but with no success:
input[id="button1"]:checked {background-color:blue;}
Shouldn't that impact the background outside of the DIV
? I am unable to find a solution. The final result should reflect both the label's background color and the page's background color based on the checkbox state.