Web Hosting, Design, & Coding forum

Question

How Do I Get Rid Of Pesky Link Underline AND Change Color?

by In-Correct / March 25, 2013 2:27 PM PDT

This should be an easy question for you to answer.

I am using a low quality editor. Amaya. (Do you recommend any alternatives?)

A few parts of my website are in Basic HTML. The design is white text on red highlighted background. I do not want the link to change color to blue and I don't want it underlined. Not in blue and not in white either. I prefer it to be not underlined and I want the text to stay white.

Is this possible? or should I try to design an image for the hyperlinks instead?

Discussion is locked
You are posting a reply to: How Do I Get Rid Of Pesky Link Underline AND Change Color?
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: How Do I Get Rid Of Pesky Link Underline AND Change Color?
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
Clarification Request
Are you familiar with CSS?
by Sovereign Forum moderator / March 26, 2013 3:12 PM PDT

~Sovereign

Collapse -
Yes.
by In-Correct / March 27, 2013 7:23 AM PDT

Yes.

All Answers

Collapse -
Answer
CSS to set color and style of link
by Sovereign Forum moderator / March 27, 2013 11:30 PM PDT

a, a:visited {
color: #000;
text-decoration: none;
}

The color sets the color and the text decoration removes the underline for visited and unvisited links.

If you want to slightly adjust the color when the user's mouse is over the link, you can use this:

a:hover {
// style here
}

~Sovereign

Popular Forums
icon
Computer Newbies 10,686 discussions
icon
Computer Help 54,365 discussions
icon
Laptops 21,181 discussions
icon
Networking & Wireless 16,313 discussions
icon
Phones 17,137 discussions
icon
Security 31,287 discussions
icon
TVs & Home Theaters 22,101 discussions
icon
Windows 7 8,164 discussions
icon
Windows 10 2,657 discussions

Does BMW or Volvo do it best?

Pint-size luxury and funky style

Shopping for a new car this weekend? See how the BMW X2 stacks up against the Volvo XC40 in our side-by-side comparison.