first time here...
So I try it my best with my limited knowledge to find a solution by myself but I couldn't so please I need your help on this:
How can I trigger a Hover effect on an non-related element (no parent, no child, no sibling)
This is the code I have:
<div id="projects">
<section class="menu_projects">
<ul>
<li class="1"><a></a></li>
<li class="2"><a></a></li>
</ul>
</section>
<section class="preview_projects">
<div id="preview"></div>
</section>
</div>
What I want is when I hover on "Class 1" the "#preview" change the background image and when I hover on "Class 2" the "#preview" change to another background image.
Any suggestion is welcome (CSS, Javascript, other). Thanks all!