Hover On One Link Change The Color Of The Link Itself And Of Another One (and Viceversa)
I've the following problem (probably it could be solve easily, let's see :)) Only using CSS and not changing the HTML code, how can I reach the following: hover on the 'title' res
Solution 1:
According to https://www.w3schools.com/css/css_combinators.asp
- targets adjacent sibling selector ~ is used for general sibling selector
however, adjacent means "immediately following", there's no equivalent for previous sibling. Therefore you can't do this using pure CSS.
You'll need to use javascript in this case, or refactor the way HTML is structured.
Post a Comment for "Hover On One Link Change The Color Of The Link Itself And Of Another One (and Viceversa)"