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 Chris Miller 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 make my links not be underlined?

Status
Not open for further replies.

Dan2929

Programmer
Aug 11, 2002
6
US
Is it possible that the links on my page won't be underlined? Is there a way I can change this? Whenever I make a link it just automatically underlines it... I really don't want that however. Thanks!

-Dan
 
Hi,

You have 2 options:

Option 1:
put this inbetween the <HEAD></HEAD>:
<STYLE TYPE=&quot;text/css&quot;>
.link
{
COLOR: #000000;
FONT-FAMILY: Arial;
FONT-SIZE: 13px;
TEXT-DECORATION: none;
}
a:link.link
{
COLOR: #000000;
FONT-FAMILY: Arial;
TEXT-DECORATION: none;
}
a:visited.link
{
COLOR: #000000;
FONT-FAMILY: Arial;
TEXT-DECORATION: none;
}
a:hover.link
{
COLOR: #FF0000;
FONT-FAMILY: Arial;
TEXT-DECORATION: none;
}
</STYLE>

And use this as your link:
<A HREF=&quot; TARGET=&quot;_blank&quot; CLASS=&quot;link&quot;>HOTMAIL</A>

In the CLASS=&quot;&quot; you specify the name of the class that was made in the STYLESHEET above (link)

Option 2:
use this as your link:
<A HREF=&quot; TARGET=&quot;_blank&quot; STYLE=&quot;{text-decoration: none;}&quot;>HOTMAIL</A>

With this one you put the STYLESHEET right in the <A> tag.

Hope this helps! NATE
design@spyderix-designz.com
 
Thankyou SO much! This has been a great help to me!

-Dan
 
Option 2:
use this as your link:
<A HREF=&quot; TARGET=&quot;_blank&quot; STYLE=&quot;{text-decoration: none;}&quot;>HOTMAIL</A>

you don't need the { } in the STYLE=...

Rick if(($question==&quot;has been bugging me&quot;
AND $answer==&quot;fixed the problem&quot;) OR $answer==&quot;really good post&quot;){
print(&quot;Star&quot;);
}else{
print(&quot;Thanks.&quot;);
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top