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? Re: Hover state, and effecting seperate images. Is is possible?

#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/