+ 2
Help me on Understanding checkbox!
I want to change the background color, when the checkbox is checked by the user! Edit the following code to make this happen. https://code.sololearn.com/WxZM0zZLEHjb
4 Answers
+ 7
https://code.sololearn.com/WF3K4aqIp8Yr/?ref=app
+ 2
You cant select a parent with CSS only, use JS.. or set a full screen child div, use input:checked + div selector to set background color.
+ 2
If you want CSS only
https://code.sololearn.com/WuLn9UMGg8gt/?ref=app
0
What have you tried so far? You will need to use JS.