The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> 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
 
Reply to this topicStart new topic
Replies
pandy
post Apr 27 2022, 10:07 AM
Post #2


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

Group: WDG Moderators
Posts: 20,733
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

Posts in this topic
WindowMan   Underlined to mouse hover   Apr 26 2022, 05:14 PM
pandy   a:hover { text-decoration: none; color...   Apr 27 2022, 10:07 AM


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

 



- Lo-Fi Version Time is now: 28th April 2024 - 01:21 PM