[lug] OT: CSS2, mixing pseudo-class with class

D. Stimits stimits at attbi.com
Sat Sep 28 14:01:39 MDT 2002


D. Stimits wrote:
> I'm trying to figure out if I can modify my CSS2 stylesheet. Currently 
> it has A:visited and A:link to adjust colors, but I wanted to have a 
> second class of <A> "anchor" tags, within a list, and I wanted this to 
> be a new class, e.g., class "foo", with different color attributes. Is 
> there a way to have both a general CSS2:
> A:visited {
> ...
> }
> A:link {
> ...
> }
> 
> ...and also a specific:
> A:visited.foo {
> ...
> }
> A:link.foo {
> ...
> }
> 
> So far I haven't found a valid way to mix :link and :visited pseudo-tags 
> with my own class name. Perhaps it isn't even possible.

Thanks, got it working. I had thought I had tried the named syntax, but 
I must've had something off slightly. Works great now.

D. Stimits, stimits AT attbi.com




More information about the LUG mailing list