I have been attempting to modify the color of the underline during a hover event by using spans. Surprisingly, it seems to be working fine in IE9 and Firefox 13.01, but unfortunately, it doesn't work properly 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>
For reference, here is the link to the js.fiddle with the code sample: http://jsfiddle.net/wuUpL/7/.
The initial inspiration for this approach came from a post on Stack Overflow (), but even that method doesn't seem to resolve the issue in Chrome.
Please bear in mind that I prefer not to use borders as a fix since they are already being utilized for border-related purposes.
If anyone has any suggestions or solutions to rectify this problem, particularly in Chrome, I would greatly appreciate the assistance.