How to change the color of a single link?

0

How to change the color of a unique link?

I have tried to go to "Modify - Page properties - Links", however the settings that are placed there go to ALL the links, and it is not what I want on my site.

    
asked by anonymous 29.04.2014 / 00:53

2 answers

4

Build a CSS selector that only reaches the link you want to color, and create the following rule in your CSS:

seu-seletor {
    color: #f00; /* vermelho - troque para a cor que quiser */
}

The shortest way is to put a unique ID on the link, and create a selector accordingly. For example, a link like this:

<a href="#" id="meulink">Bla bla bla</a>

requires a selector like this:

#meulink { color: #f00; }
    
29.04.2014 / 02:21
3

You can go directly to the style of the link:

<a href="#" style="color: #F00">teste</a>
    
29.04.2014 / 01:40