Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] How can I change element while hovering over another? Reply To: How can I change element while hovering over another?

#150177
Paulie_D
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.