Re: different link colors



In article <ni1px5cwk6gv.s0gopvc5600x$.dlg@xxxxxxxxxx>,
SPAMfree@xxxxxxxxx says...
how do i create different link colors on same web page?

i define how <A> tag look with CSS, but how then do i apply different
formatting to few selected links?

i need to do that to maintain contrast between link color and background.

thanks!


Use different classes:

a:link blue { color: blue; }
a:link green { color: green; }
a:link red { color: red; }

<a class="blue" href="bluepage.html">This is a blue link</a>

and so on.

This is basic CSS, so search Google for a more in-depth answer.
.



Relevant Pages

  • Re: different link colors
    ... i define how tag look with CSS, but how then do i apply different ... formatting to few selected links? ...
    (alt.html)
  • Re: different link colors
    ... i define how tag look with CSS, but how then do i apply different ... formatting to few selected links? ... Then do the beginner tutorials on CSS at htmldog.com and you will easily learn the answer in a very short period of time... ...
    (alt.html)
  • Re: different link colors
    ... i define how tag look with CSS, but how then do i apply different ... formatting to few selected links? ... If links to, say, a glossary page on your website should be green, then use class "glossary-link", for example, and ...
    (alt.html)
  • Re: different link colors
    ... i define how tag look with CSS, but how then do i apply different ... formatting to few selected links? ... The first question should be "do I really need to use different backgrounds for different links", and the correct answer is mostly "No, not at all". ...
    (alt.html)
  • Re: different link colors
    ... i define how tag look with CSS, but how then do i apply different ... formatting to few selected links? ...
    (alt.html)