Forum Moderators: not2easy
But how do I set another class for my other links?
Is it this the way to do it?
a.two:link: xxx;
a.two:visited: xxx;
a.two:active: xxx;
Than in my code = <a href class="two"="http.//...>
This doesnt seem right too me, any thoughts?
Thanks!
alternatively if the class 'two' of links are all in one place you maybe able to wrap them all in a span, div or td:
<span class="two"><a href="...</span>
and have your css like so:
.two a:link,
.two a:visited {
styles
}
<edit> too slow - and didnt spot the error. so another useless post from me. yay! ;)</edit>
[edited by: benihana at 3:52 pm (utc) on Mar. 19, 2004]
alternatively if the class 'two' of links are all in one place. . . .
I would ordinarily code it the second way, for the reason mentioned. (In fact, I was in the midst of writing much the same response... just a bit too slow!)
But now I'm curious --are there situations in which "a.two:link" is to be preferred?
<div class="two">
<a href="#">one</a>
<a href="#">two</a>
<a href="#">three</a>
</div>
..but if the links are used inline with other text then the first way might make more sense (especially if there are other links that are not styled that way - e.g. one style for internal and one style for external).