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

Hover-visited link relation

0 views
Skip to first unread message

Nikola Milic

unread,
Jul 10, 2001, 12:50:18 AM7/10/01
to
Hi,
I'm using CSS below for tag <a>. My problem is: if link is already visited
and I hover mouse over that link, there is no underlined text decoration.
How to solve this? I don't want to underline visited links.

Thanks in advance
Nikola Milic

CSS:
A {

COLOR: #009933; FONT-FAMILY: Tahoma; FONT-WEIGHT: normal; TEXT-DECORATION:
none

}

A:visited {

COLOR: green; FONT-FAMILY: Tahoma; FONT-WEIGHT: normal; TEXT-DECORATION:
none

}

A:hover {

COLOR: green; FONT-FAMILY: Tahoma; FONT-WEIGHT: normal; TEXT-DECORATION:
underline

Rowland Shaw

unread,
Jul 10, 2001, 3:52:59 AM7/10/01
to
as both a:visited and a:hover match in specifity, it'd be the last
declaration that gets used, so in your case, your visited link will be
underlined on hover per CSS [ Read the section in the spec on the Cascade
Rule ]

By the way, you don't need to re specify the font-family and font-weight in
the pseudo classes, so you'd get:

a { color: #009933; font-family: tahoma, arial, sans-serif; font-weight
normal; text-decoration: none; }
a:hover { text-decoration: underline; color: green; }
a:visited { text-decoration: none; color: green; }


"Nikola Milic" <mni...@entercasino.com> wrote...

Nikola Milic

unread,
Jul 10, 2001, 4:52:09 AM7/10/01
to
Thanks for your reply,
but it doesn't work. Please see www.findinternetcasino.com for example.
Thanks again
Nikola

"Rowland Shaw" <spamf...@anotherpointless.org> wrote in message
news:O#nTYVRCBHA.1936@tkmsftngp07...

Manish

unread,
Jul 10, 2001, 1:37:02 PM7/10/01
to
Maybe you could replace

A {.....}

by

A:link {.....}

Hope it helps...

- Manish
http://technofundo.com


"Nikola Milic" <mni...@entercasino.com> wrote in message
news:Os3Ge2RCBHA.1288@tkmsftngp02...

Rowland Shaw

unread,
Jul 11, 2001, 10:59:52 AM7/11/01
to
Works for me on the page you specify...


"Nikola Milic" <mni...@entercasino.com> wrote...


> but it doesn't work. Please see www.findinternetcasino.com for example.
>
>

> "Rowland Shaw" <spamf...@anotherpointless.org> wrote...

0 new messages