[Javascript] Doubt in style sheets

Nazir Wasim Ahmed nazirwa at sakinfotech.co.in
Tue Nov 25 02:26:24 CST 2003


thank u peter,

it worked like a charm...

Nazir
> -----Original Message-----
> From: javascript-bounces at LaTech.edu 
> [mailto:javascript-bounces at LaTech.edu]On Behalf Of Peter Brunone
> Sent: Monday, November 24, 2003 9:32 PM
> To: '[JavaScript List]'
> Subject: RE: [Javascript] Doubt in style sheets
> 
> 
> Nazir,
> 
> 	I'm not sure how standards-compliant this is, but you can define
> pseudo-classes like this:
> 
> .anchorlink:active {
> 	color:#cc0000;
> 	}
> 
> .anchorlink:hover {
> 	text-decoration:underline;
> 	}
> 
> .anchorlink:visited {
> 	color:#003399;
> 	}
> 
> 	Active corresponds to alink, visited corresponds to vlink, and
> hover is when the mouse moves over the link.
> 
> Salaam,
> 
> Peter
> 
> -----Original Message-----
> From: javascript-bounces at LaTech.edu On Behalf Of Nazir Wasim Ahmed
> 
> hello people..
> 
> i am new to css.
> how can i specify custom colors for vlink and alink in an anchor tag
> thro' stylesheet i have an element like this in the css file...
> 
> .anchorlink{
>         FONT-SIZE:7pt;
>         COLOR: #000066;
>         FONT-FAMILY: Verdana, Helvetica, sans-serif;
>         FONT-WEIGHT:bold;
>         TEXT-DECORATION:none;
> }
> 
> i need to specify different colors for visit & active links...
> 
> 
> thanx in advance.
> 
> Nazir
> 
> 
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
> 



More information about the Javascript mailing list