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?
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?
You can use the siblings selectors:
div:hover + button {color:red;} div:hover ~ button {color:red;}
Example: http://jsfiddle.net/tovic/WTAr9/1050/