The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Underlined to mouse hover, In need of code
WindowMan
post Apr 26 2022, 05:14 PM
Post #1





Group: Members
Posts: 2
Joined: 23-October 21
Member No.: 28,153



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.

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Apr 27 2022, 10:07 AM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,716
Joined: 9-August 06
Member No.: 6



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#d...-pseudo-classes
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th March 2024 - 07:53 AM