Wrox Home  
Search P2P Archive for: Go

  Return to Index  

html_code_clinic thread: Re: Changing color of Hyperlink


Message #1 by "Ricardo Lopez" <rxlopez@s...> on Fri, 12 Apr 2002 20:18:46
> Hi.
> 
> In an HTML page, I'm using an HREF to a web site. I want it to be blue 
> on "link", red on "visited" and yellow on "active".
> 
> I know I need to use
>  a:link {color: blue}
>  a:visited {color: red}
>  a:active {color: yellow)
> 
> However, I can't get it to work. I have a css file with the above 3 
lines 
> in it. I only get a color when I remove the ":link" etc. 
> 
> I tried placing the 3 lines in the HTML code but was not sure if it had 
to 
> be within <STYLE> tags or what.
> 
> TIA.
> 
> Rita
> 
>                     

  Return to Index