Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Markup (HTML, XHTML, XML) _ Underlined to mouse hover

Posted by: WindowMan Apr 26 2022, 05:14 PM

I would like to change this code:

<a href=test.htm>
Click here for the test.
</a>

in which
Hello world is underlined

to

No underline and a mouse hover will change the color to blue.


Posted by: pandy Apr 27 2022, 10:07 AM

CODE
a:hover   {  text-decoration: none; color: blue; background: inherit }


Or if you mean it should never be underlined...

CODE
a    {  text-decoration: none }
a:hover   { color: blue; background: inherit }


http://www.w3.org/TR/CSS21/selector.html#link-pseudo-classes
http://www.w3.org/TR/CSS21/selector.html#dynamic-pseudo-classes

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)