Let's start by examining the code I've written:
HTML:
<div class="button_container">
<div class="inner_button">
<a href="#" class="button_text">Button</a>
</div>
<div class="button_side">
<i class="play" />
</div>
</div>
CSS:
.inner_button:hover {
background: red;
}
.button_container:hover > .button_side {
background-color: red !important;
}
The code above ensures that when .button_container
is hovered, .button_side
will also hover. Now, I want to achieve the reverse effect - hovering over .button_side
should trigger a hover effect on .button_container
. While this may be challenging with CSS, I'm willing to explore JQuery as an alternative solution. How can I implement this behavior?