Re: Ussing CSS to turn visited links another color

by "Cindy Stanley" <stanleysupport(at)prodigy.net>

 Date:  Mon, 18 Oct 1999 11:27:43 -0400
 To:  "Vickie Burt" <vickie(at)icon.co.za>,
<hwg-style(at)hwg.org>
  todo: View Thread, Original
From: Vickie Burt <vickie(at)icon.co.za>
>I have amended the text to read:
><STYLE TYPE="text/css">
><!--
>     a: { text-decoration: none; color: #0000CC }
>     a:vlink { text-decoration: none; color: #663366 }
>     a:hover { text-decoration: underline; color: #FF0000 } -->
></STYLE>
></HEAD>

Vickie ... you are calling your links by the wrong name.
It should read as follows:

<style type="text/css">
<!--
a:link { text-decoration: none; color: #0000CC }
a:visited { text-decoration: none; color: #663366 }
a:active { text-decoration: none; color: #FF0000 }
a:hover { text-decoration: underline; color: #FF0000 }
-->
</style>

>Would it make a difference if the <STYLE> tags came before or after
><script language="JavaScript"> tags ?

I don't think it makes a difference, though I prefer to put the <style>
tag before any <script> tags.

>I have tried various combinations and it appears that the <STYLE> tags
are
>only using the a:hover, and taking the rest of the information from the
><BODY> tags. What would make the program ignore the first two lines of
code

Correct the wording of your links and it will work.

--
Cindy K. Stanley

HWG hwg-style mailing list archives, maintained by Webmasters @ IWA