Forums

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

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #30415
    GreatPotato
    Member


    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?


    #78681

    with css3 you can use the sibling selector

    #red:hover ~ #blue
    #78716
    GreatPotato
    Member

    Ah that’s brilliant because I wanted to use it with a transition anyway.

    Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.