I'm trying to change the width and height of a div on the click of a checkbox (#navigation). I know I can change other elements like span through
#navigation input:checked ~ span { }
but when I try
#navigation input:checked { }
I don't get the same result. Is there a way of doing this through css or am I out of luck?
My html would be as follows...
<nav id="navigation">
<input type="checkbox" />
<ul><li>heading1</li><li>heading2</li><li>heading3</li></ul>
</nav>