English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I want to make a webpage with two different colors of links, I want one to be black and one to be light blue. How do i do this using a CSS page? I tried to change it, but they all go the same color.

2007-10-15 10:52:54 · 1 answers · asked by Gah 2 in Computers & Internet Programming & Design

1 answers

If you wanted, you could have separate areas on a page have different colors of links such as, say


This is what I link to.




...then in your css place
a { color: #00f; }
div#this a { color: #f00; }

...and all links in the "this" div would be red

else, you could have a class of links called "such"

a { color: #00f; }
a.such { color: #f00; }

and use

This is a blue link and this is a red link.

2007-10-15 11:02:33 · answer #1 · answered by fjpoblam 7 · 0 0

fedest.com, questions and answers