I want to hover a single word in an h4, and have it switch the background color of the h4 and the color of the background of the containing element.
Here's my HTML:
<div class="blackwrap">
<header class="blackbar">
<h2>Before he knew it, he couldn't see a thing.</h2>
<h4>He fumbled around for the <a id="flash">flashlight</a> on his phone.</h4>
</header>
</div> <!-- .blackwrap-->
CSS:
.blackbar {
background: black;
color: white;
}
I want #flash:hover to change the background & color of .blackbar. Is this possible in this configuration? Will this need JS / jQuery?