Re: Link Colors
by "Lisa Bradshaw" <zibbler(at)mediaone.net>
|
Date: |
Fri, 8 Feb 2002 16:33:08 -0500 |
To: |
"D. J. Bostock" <flouric(at)mac.com>, <hwg-style(at)hwg.org> |
References: |
mac |
|
todo: View
Thread,
Original
|
|
a:link {color: red}
a:visited {color: blue}
a:hover {color: white}
Be aware that a:hover does not work in NN 4.7 and under. It will render your
links unusable. If you want to use the hover attribute for IE users, just
make 2 seperate style sheets and use a browser sniffer script to serve them
up. Also, a:hover MUST come last in order or it won't work and will mess up
your other link attributes.
HTH,
Lisa
----- Original Message -----
From: "D. J. Bostock" <flouric(at)mac.com>
To: <hwg-style(at)hwg.org>
Sent: Friday, February 08, 2002 3:35 PM
Subject: Link Colors
> Greetings all.
>
> In HTML I could use the body attributes link, vlink, and alink to
> control the colors of links. I know that I can control the color of a
> link with CSS by saying something like:
>
> a {color: blue}
>
> But how can I distinguish between the three unvisited links, active
> links, and visited links with CSS? I'm helping to code a page where the
> author specifically wants different colors for each.
>
> Thank you for any help that you can provide.
>
> Regards,
> DJ
>
>
HWG hwg-style mailing list archives,
maintained by Webmasters @ IWA