Dave Taylor answers free tech support questions about a wide variety of business and technical topics, including blogging, iphone help, ipod help, AdSense, MySpace, Sony PSP help, Mp3 players, Windows XP, Windows Vista, Linux, SEO, Mac OS X, Facebook, Twitter and LinkedIn.

Changing Link Colors on an HTML page

A reader writes:
"I was hoping you could tell me where I can find info to solve a problem I'm having with one of the pages. I want my hyperlinks to stay the same colour as the rest of the text and not change at all, and i'd like to avoid the underlining too."

Dave's Answer: This is a common question and one that's addressed in Creating Cool HTML 4 Web Pages.

There are a couple of ways to solve this, ranging from the banal and old fashioned LINK and VLINK attributes to the BODY tag (as in <BODY LINK="black"> to have text links black if not visited) to the more advanced style sheets, where you can have structures like:

a { color: black; text-decoration:none; }
a:hover { text-decoration: underline; }
which would give you black links without underlines, with the underline only showing up at the 'hover', when the cursor is immediately over the link text.

I hope that helps!



Help others find this article at Del.icio.us, Digg, Netscape, Reddit, and Stumble Upon    

Subscribe!

Never miss another useful Q&A article again! Subscribe to AskDaveTaylor with Google Reader.

Comments

thanks dude, i though it woulda been an easy fix, and that tag made it just that..
later

Posted by: doug at December 4, 2003 1:30 PM

hey how do you change the coIour of ure writeing on myspace

Posted by: sarah guymer at February 20, 2007 8:56 AM


I have a lot to say, but ...
Starbucks coffee cup I have a lot to say, and questions of my own for that matter, but most of all I'd like to say thank you for all your efforts on this Web site by buying you a chai!

I do have a comment, now that you mention it!









Remember personal info?


Please note that I will never send you any unsolicited commercial email. Ever.

While I'm at it, please note that by submitting a question or comment you're agreeing to my terms of service, which are: you relinquish any subsequent rights of ownership to your material by submitting it on this site.









Uniblue: Free Virus Scan

Search
Find just the answers you seek from among our 1700+ free tech support articles by using our Lijit search engine.


Member of the B5Media Network

Help!





Subscribe to
Ask Dave Taylor!

Add to Google Reader
Add to My Yahoo!
Subscribe in NewsGator Online

RDF   XML

Free Updates!
Sign up and get free weekly updates and special offers on books, seminars, workshops and more.


Recent Entries
Join the List!
Join my author info mailing list, where you'll learn about my upcoming books, speaking gigs, and more!


Book Links
© 2002 - 2008 by Dave Taylor. All Rights Reserved.

Note: This web site is for the purpose of disseminating information for educational purposes, free of charge, for the benefit of all visitors. We take great care to provide quality information. However, we do not guarantee, and accept no legal liability whatsoever arising from or connected to, the accuracy, reliability, currency or completeness of any material contained on this web site or on any linked site.

[whiteboard marker tray]