Thread: links - same colours
Results 1 to 3 of 3
Related
-
background colours Forum: HTML Forum
Replies: 5 -
Link colours Forum: HTML Forum
Replies: 1
-
06-21-2004, 07:15 AM #1
links - same colours
I want to have 3 links in my home page in red, blue & green
and I want to have them in the same colours on all the other pages
I don't want them all one colour or changing colour when they are hyperlinked by Front Page
don't want them underlined either
can it be done?
nufzed
-
06-21-2004, 07:36 AM #2
Hi nufzed,
you need to set a class for each link in your CSS.
a.one:link {color: red;text-decoration: none;}
a.two:link {color: blue;text-decoration: none;}
a.three:link {color: green;text-decoration: none;}
a.one: visited {color: red;text-decoration: none;}
a.two: visited {color: blue;text-decoration: none;}
a.three: visited {color: green;text-decoration: none;}
a.one: hover {color: red;text-decoration: none;}
a.two: hover {color: blue;text-decoration: none;}
a.three: hover {color: green;text-decoration: none;}
a.one: active {color: red;text-decoration: none;}
a.two: active {color: blue;text-decoration: none;}
a.three: active {color: green;text-decoration: none;}
...im sure theres a quicker way of writing this!?
hope it helps
krak_d
-
07-02-2004, 03:36 PM #3
I remember there being a way to do this by putting ' color="red" ' or something in the link tag, but either my computer just won't do this or it doesn't work, since I have the same problem on my site.