Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Anchors and class

0 views
Skip to first unread message

Mikeage

unread,
Jul 6, 2002, 1:05:21 AM7/6/02
to
Hi,
I've noticed when I specify a class with an anchor the hover property
sometimes get lost.

A:link { color: #000000; }
A:hover { color: #ffffff; }

A.Black:link { color: #ffffff; }
A.Black:hover { color: #000000; }

Then i define a link
<a href="someURL" class="Black">
Sometimes this works fine and sometime the hover color is just not used. All
the other properties will work fine though (ie: color, visited, active). It
is only the hover property that seems to get lost.
I though it might have something to do with properties defined for whatever
the link is contained in but I've had to links right next to each other in
the same table defined with the same class and one would use the hover color
and the other wouldn't.

Is this a weird bug or is there something I don't know here?

Thanks,
Mike

Rowland Shaw

unread,
Jul 8, 2002, 4:18:03 AM7/8/02
to
Do you have a sample that reproduces the issue? Does this only affect a
specific version of a specific browser, or is it more generalised?


"Mikeage" <mi...@cheshire.net> wrote...

Mikeage

unread,
Jul 9, 2002, 3:21:52 AM7/9/02
to
Actually I figured it out. I was looking at the CSS 2 specs on w3c and you
have to put your anchor settings in this order
A: link
A: visited
A: hover
A: active
I don't remember exactly the reason it said but if you don't do it in that
order it behaves erratically.

Mike


"Rowland Shaw" <spamf...@anotherpointless.org> wrote in message
news:OxSMfflJCHA.2756@tkmsftngp10...

0 new messages