This is the simple HTML code:
<li class="main">
<a href="#">ImageLink</a> <!--1st anchor tag-->
<a href="#">ImageName</a> <!--2nd anchor tag-->
</li>
Is it possible to change the color of 2nd anchor tag on hover state of 1st anchor tag? (And vice versa.)
Not with css. This kind of actions can only be done by script.
If you use jQuery you could add the following script:
Now you can use the hover class to specify the color:
Edit
It would be easier to give both
a‘s an id, so you could reference them by usingvar a1 = $('#a1');.