Pretty simple question (I think), is there a way to write a conditional statement checking for an inputs state using only css? I'm trying to write one checking if it's :checked or not.
I should have elaborated a little bit more. I'm messing around with two inputs, one is withing a sibling list to the first I'm attempting to change a property on the first input once the second has been checked. Just wondering if anyone has found a way to do this with the assumption that the answer will be "no".
<nav>
<label for="menu-toggle" class="openMenu"><span></span></label>
<input type="checkbox" id="menu-toggle"/>
<ul id="main-menu">
<li><a href=#>Home</a></li>
<li>
<label for="menu-toggle-2" class="openDrop">
<a name=Services>Services</a>
</label>
<input type="checkbox" id="menu-toggle-2"/>
<ul id="drop">
<li><a href=#>blah</a></li>
<li><a href=#>blah</a></li>
<li><a href=#>blah</a></li>
</ul>
</li>
<li><a href=#>Portfolio</a></li>
<li><a href=#>Clients</a></li>
<li><a href=#>Contact</a></li>
</ul>
</nav>
I do know how to do this with JS, just am messing around to see if it's possible in any way with just css.