Sent by Eric A. Meyer on 9 April 2002 18:06
At 15:46 -0600 4/9/02, Michael Sauers wrote:
>It's the end of the day but I'm not sure that's a good excuse for the
>following:
>
>a:hover {display: none}
That trick turns out to be less useful than you might think. When
you hover a link it disappears, but that means it exits the hover
state, so it reappears. As soon as it comes back it's hovered again,
so it disappears-- lather, rinse, repeat. It is one way to find out
how fast your browser is at dynamic state changes.
There's a variant that might not suffer from that problem:
a:hover {visibility: hidden;}
The question then becomes: is an invisible link able to be hovered?
Or does it exit the hover state when it disappears? There is no
clear definition in CSS, so it's up the implementors to decide. The
link may flicker in and out of existence, or just stay hidden until
you move the mouse pointer away.
>a:selected {display: none}
I think you mean 'a:visited {display: none;}'. Or maybe
'a:focus'. There isn't any such things as ':selected', even in CSS3.
Anyone can have fun with these and other styles by setting up a
user stylesheet-- it's simple to filter out banner ads, for example.
See either of the following (admittedly aging) articles for ideas:
<http://www.oreillynet.com/pub/a/network/2000/07/21/magazine/css_anarc
hist.html>
<http://www.oreillynet.com/pub/a/network/2000/07/21/magazine/css_anarc
hist.html>
--
Eric A. Meyer (http://www.meyerweb.com/eric/), List Chaperone
"CSS is much too interesting and elegant to be not taken seriously."
-- Martina Kosloff (http://www.mako4css.com/)