Is my goal too complex to achieve? I am attempting to create a hover effect where the opacity of artwork1 and button1 changes simultaneously when hovered over. However, I am having trouble properly labeling my elements and getting them to interact as intended. Below is the code snippet explaining my issue:
<html>
<body>
<div id="buttons">
<a href="..." id="button1"><img src="..." class="spaced"(to spaced the buttons)></a>
<a href="..." id="button2"><img src="..." class="spaced"></a>
<div id="artwork">
<a href="..." id="artwork1"><img src="..." class="mainbuttons & greydout"</a>
<a href="..." id="artwork2"><img src="..." class="mainbuttons & greydout"></a>
I have tried using JavaScript to achieve this effect, however, I am encountering issues with other scripts running on the page possibly causing conflicts. Additionally, I have attempted using CSS but have not been successful in achieving the desired interaction between the divs. Any assistance or advice would be greatly appreciated. Thank you for taking the time to read through my explanation.