I am trying to change the color of the underline during a hover event using spans, and it works in IE9 and Firefox 13.01, but it does not work in Chrome (it should be underlined in gold).
#menu li:hover span.underline { text-decoration:underline; color: #FAA301; }
<ul id="menu"> <li style="z-index: 7;"><span class="underline"><a href="#">link1</a></span></li> </ul>
Here is js.fiddle: http://jsfiddle.net/wuUpL/7/ .
Initially, I got the idea from this post https://stackoverflow.com/a/166956/ but this also doesn't work in chrome.
Note. I donโt want to use borders to fix this, I already use borders as a border
Can someone help me here? Is there any chrome hack / exception that I could fix?
source share