I have a HTML structure like this:
<div>some texts</div>
<span>
something
<a href="#">link</a>
</span>
<img src="#" height='35' width='35' />
I'm trying to change the color of that link <a>
when user goes on that image <img>
. (goes on that element = :hover
). Noted that this doesn't work:
img:hover a {
color: red;
}
Doing that is possible?
If doing what I want in above isn't possible, what about this HTMM structure?
<a><img src="#" height='35' width='35' /></a>
<div>
some texts
<span><a href="#">link</a>
</span>
</div>
In this case I want to change the color of that inner <a>
when user goes on that image <img>
(:hover).