Click to See Complete Forum and Search --> : css pseudo-class help


NEWGEEK
06-10-2009, 03:41 PM
I am recently get to know pseudo-class of css here is an example

a: link { color: 000000;}
a: visited { color: 000000;}
a: hover { color: 0000FF;}
a: active { color: 000000;}

<a href= “ www.link.com”>link</a>

What do I have to add to the pseudo-class above to control the properties of other links in the same page

mss a: link { color: 000000;}
mss a: visited { color: 000000;}
mss a: hover { color: 0000FF;}
mss a: active { color: 000000;}

<mss a href= “ www.link.com”>link</a>

ryanbutler
06-11-2009, 10:45 AM
If you want the same styles applied to other links on the same page, then nothing. If you want different styles applied to other links on the same page then you could do this:

a.special:link{color:red;}

<a href="javascript:;" class="special">test</a>

NEWGEEK
06-12-2009, 08:02 AM
You don’t find this kind of line code examples in the books thanks css is a laid out friend