HTML:
<div id="main-div">
op: <input type="checkbox" id="ck">
</div>
Is there a way to style "main-div" according to "ck" state, ONLY using CSS? For example, if "ck" is checked "main-div" should apply a yellow background.
Using pseudo-class : using checked, it's possible to verify ck state, but how would it target the main-div?