Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

Question

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

Mar 25, 2013 2:27PM 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

- Collapse -
Clarification Request
Are you familiar with CSS?
Mar 26, 2013 3:12PM PDT

~Sovereign

- Collapse -
Yes.
Mar 27, 2013 7:23AM PDT

Yes.

- Collapse -
Answer
CSS to set color and style of link
Mar 27, 2013 11:30PM 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