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

How can I selectively apply "a:link" and "a:hover"?

0 views
Skip to first unread message

Tom

unread,
Mar 13, 2002, 5:16:58 PM3/13/02
to
I have a navigation bar with text links that I'd like to look and behave
differently than text links with the main page content.

I know that the "a:link" and "a:hover" pseudo-classes will do this...but for
EVERY link on the page.

It there a way to specify which links are effected by the anchor
psuedo-classes...or conversely, which are not? Or, is there another way
using styles to specify how links look and behave on hover?

Thanks!
Tom

tlfe...@REMOVEhealthebay.org


viza

unread,
Mar 13, 2002, 7:04:22 PM3/13/02
to
Thus quoth Tom:

a.foo:link {blah}
a:link {blah}

<a class="foo" href="http://...
<a class="foo" href="http://...
<a class="foo" href="http://...

<a href="http://...
<a href="http://...

or

div.nav a:link {blah}
a:link {blah}

<div class="nav">
<a href="http://...
<a href="http://...
<a href="http://...
</div>

<a href="http://...
<a href="http://...

Tom

unread,
Mar 13, 2002, 9:40:00 PM3/13/02
to
Cool....Thank you!!!

"viza" <m...@work.not> wrote in message
news:4LRj8.44869$xO2.3...@news11-gui.server.ntli.net...

0 new messages