Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I get a link not underlined? 2

Status
Not open for further replies.

jeevenze

Technical User
Mar 13, 2001
62
0
0
US
I'm creating a page with some links to outside pages...I'm using e.g. <a href=&quot; Is there anyway that this link not be underlined? I can change the color properties of the links but can't get rid of the line. On some pages I've seen where a link is underlined and after a user rolls over it, a line appears under it. Is there a way to do this in HTML?
Any help is much appreciated.

Thanks
Jeevenze
 
Hi Jeevenze,

you should use CSS and define the &quot;TEXT-DECORATION&quot; properties
example:
<html>
<head>
<style>
A:hover {}
.myLink
{
TEXT-DECORATION: none
}
</style>
</head>
<body>
<A href=&quot; class=&quot;myLink&quot;>This is my link</A>
</body>
</html>

to do the rolls over effect, just add
.myLink:hover
{
TEXT-DECORATION: underline
}


hope this helps, Chiu Chan
WebMaster & Software Engineer
emagine solutions, inc
cchan@emagine-solutions.com
 
Note, however, that the :hover attribute is not supported by NS 4.7 or less. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
screw netscape 4.x, they can all either update or use a good browser like IE. not knowing is an excuse for those umwilling to lern -- John Rueben
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top