The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › [Solved] CSS modify child on hover
Ok, the following will change #blue to green when #red is hovered? Ok.
Now is it possible to do it if my div’s were organised like so?
with css3 you can use the sibling selector
#red:hover ~ #blue
Ah that’s brilliant because I wanted to use it with a transition anyway.
Thanks!