Forums

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

Home Forums CSS Hover state, and effecting seperate images. Is is possible?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35335
    longballoon
    Member

    I was wondering if it would be possible to change properties of a div or image, by hovering over completely separate list items?
    If so does anyone have any suggestions?

    #105862
    Taufik Nurrohman
    Participant

    You can use the siblings selectors:

    div:hover + button {color:red;}
    div:hover ~ button {color:red;}

    Example: http://jsfiddle.net/tovic/WTAr9/1050/

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