Hello everyone!
This is my first time posting here and I've been struggling to find a solution with my limited knowledge. I could really use some help on this:
Is there a way to trigger a hover effect on an element that is not related (no parent, child, or sibling)?
Here's 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>
I want to change the background image of "#preview" when hovering over "Class 1" and display another image when hovering over "Class 2."
Please feel free to share any suggestions you might have whether it's CSS, JavaScript, or something else. Thank you all in advance!