Apologies in advance because I know this is a silly question. I am using the following CSS code to change the background color of a label when it's associated checkbox is checked:
#project input[id="button1"]:checked + label {background-color:red;}
I want to ALSO change the background color of the entire page when id="button1" is checked. Is that possible? I tried adding to the line and a new line with no success:
input[id="button1"]:checked {background-color:blue;}
Shouldn't that affect the background outside the DIV? I can't figure it out. The finished product should have both the label background color and the page background color connected to the state of the checkbox.