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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create link with same color as other text

Status
Not open for further replies.

moepower

Programmer
Oct 5, 2000
93
US
How do I go about creating a link in a webpage and have it the same color as the other text? I just want an underline beneath the link but not different color text.

Thanks,
 
moepower,

try this:
<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;>
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<style>
a:link {color:#000000}
a:active {color:#000000}
a:hover {color:#000000}
a:visited {color:#000000}
</style>
</HEAD>

<BODY>
<a href=&quot;#&quot;>hello there</a> what are you doing?
</BODY>
</HTML>

That should make you happy. It puts the link as black, just like the text that follows it.

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top