The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Help with Links
Mandy
post Apr 28 2007, 06:32 AM
Post #1





Group: Members
Posts: 6
Joined: 28-April 07
Member No.: 2,650



Hello!

I am trying to create a menu with text links that change color with the onmouseover effect.

What I am curious about is if I can remove the underline from the text that automatically appears after making it a link?

Thanks in advance!

Mandy
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Apr 28 2007, 07:01 AM
Post #2


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



You can use CSS for both the appearance (underlining) and the mouseover (hover) effect of a link.

To remove underlines of a link (although that might confuse users), use:
text-decoration: none;
See the CSS reference on text-decoration

For a hover effect, use:
a:hover {
color: #xxxxxx;
}
See pseudo classes, though there's no talk of the dynamic hover pseudo class there. For that, you might want to take a look at the dynamic pseudo-classes at W3C.

In general, go see Where can I learn about CSS?.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

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: 27th April 2024 - 12:57 PM