[Javascript] Doubt in style sheets

Peter Brunone peter at brunone.com
Mon Nov 24 10:02:09 CST 2003


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





More information about the Javascript mailing list