Home › Forums › CSS › [Solved] How can I change element while hovering over another? › Reply To: How can I change element while hovering over another?
September 16, 2013 at 2:01 am
#150177
Member
The problem is the element I would like to apply the hover state to is higher up in the DOM, not below.
While your ‘solution’ might solve your particular problem it isn’t actually doing the above.
You have a hover state of the figure element which affects something inside the element (and thus lower in the DOM).
You could, however do this: http://codepen.io/Paulie-D/pen/hasvk
It doesn’t actually affect anything higher in the DOM, it just looks like it.