I am currently dealing with some style issues. How can I apply the styling of the parent tag to the child tag when hovering over it? Let's illustrate this with a simple example.
.outer:hover {
background: yellow;
z-index: 1;
position: relative;
}
.inner {
background: red;
position: relative;
}
<div class="outer">
<div class="inner">Something</div>
</div>
Desired outcome: By default, the background is red (as per the inner class), but upon hovering, I want it to change to the styling of the parent tag (with the outer class and a background color of yellow).
The outer and inner classes must remain within those specific tags. http://jsfiddle.net/P7c9q/2209/