Is it possible to affect an element that is placed within a div by hovering on an element that belongs to another div?
I can get it to work using the general sibling selector, but only when the element that I hover on isn't placed inside any other element. Is this the only way it can be done?
Edit: I didn't really want to tire you with all the details but yes, perhaps I should have included some markup in the first place. So, here it is, rather (over)simplified:
<nav>
<button></button>
</nav>
<div id="sidemenu">
<ul class="nav">
<li>Link 1</li>
<li>Link 2</li>
</ul>
</div>
When on small devices, the sidemenu would be hidden and the button element would appear. Hovering on the latter would make the sidemenu reappear as a drop down menu. At least that was the idea. I don't really feel that it would be right to change the markup, so I guess I need to find another way to do this.