Active link property doesn't work---despite CSS

C

crispy

Can anyone tell me why on this page:
http://www.saneplanet.com/clients/nomadic/draft/past_prods.htm

the ACTIVE property for the links on the navbar don't show? The
visited, link, and hover work fine. But Active doesn't. I need it to
work so that it serves as a clue to the user on which page he is on.

Here's the CSS:


..navbar a:link {
background-color : #000;
display : block;
border : 1px solid #000;
padding : 2px 2px 2px 2px;
text-decoration : none;
width : 100%
}
..navbar a:visited {
background-color : #000;
border : 1px solid #000;
display : block;
padding : 2px 2px 2px 2px;
color : #fff;
text-decoration : none
}
..navbar a:hover {
background-color : #AD0000;
border : 1px solid #ffffff;
display : block;
padding : 2px 2px 2px 2px;
color : #fff;
text-decoration : none
}
..navbar a:active {
background-color : #AD0000;
display : block;
border : 1px solid #fff;
padding : 2px 2px 2px 2px;
color : #fff;
text-decoration : none;
width : 100%
}
 
D

David Dorward

crispy said:
the ACTIVE property for the links on the navbar don't show? The
visited, link, and hover work fine. But Active doesn't. I need it to
work so that it serves as a clue to the user on which page he is on.

That isn't what :active does. It triggers while the element is being
activated (e.g. while the user holds the mouse button down on a link)
 
S

Steve Pugh

crispy said:
Can anyone tell me why on this page:
http://www.saneplanet.com/clients/nomadic/draft/past_prods.htm

the ACTIVE property for the links on the navbar don't show?

They do, but as they're the same as :hover and as people using a mouse
to navigate would need to position the mouse over the link before
clicking there's not actually much to see.
The
visited, link, and hover work fine. But Active doesn't. I need it to
work so that it serves as a clue to the user on which page he is on.

The pseudo-class :active doesn't mean the current page, it means the
state of the link whilst it is being activated (e.g. on a typical set
up whilst the left mouse button is actually down).

Steve
 
B

brucie

the ACTIVE property for the links on the navbar don't show? The
visited, link, and hover work fine. But Active doesn't. I need it to
work so that it serves as a clue to the user on which page he is on.

<quote>
The :active pseudo-class applies while an element is being activated by
the user. For example, between the times the user presses the mouse
button and releases it.
</quote> http://www.w3.org/TR/REC-CSS2/selector.html#dynamic-pseudo-classes
 
C

crispy

Thanks for all your responses. Is there a way to keep the menu item
in a different color so it serves as a clue to the user on which page
he is on?
 
M

MLC

Il 08/dic/2003 brucie ha scritto:

I like your Dead Bodies :)

BTW, I don't understand the purpose of the img src inside h1:
<h1>Home<img src="button-background01.jpg" width="1" height="1" alt=""><img
src="button-background02.jpg" width="1" height="1" alt=""><img
src="button-background03.jpg" width="1" height="1" alt=""></h1>
Is it to load all the images in memory, in order to have an instant access
to them when you use the buttons?
Thank you,
 
B

brucie

I like your Dead Bodies :)

i add more every day
BTW, I don't understand the purpose of the img src inside h1:
Is it to load all the images in memory, in order to have an instant access
to them when you use the buttons?

yes although some filters will bock them as webbugs so you may still get
a delay but its not as likely as someone have having JS off which would
screw up JS preloaders.
 
M

MLC

Il 08/dic/2003 brucie ha scritto:
i add more every day


yes although some filters will bock them as webbugs so you may still get
a delay but its not as likely as someone have having JS off which would
screw up JS preloaders.

Thank you. It was new to me, and seems a good idea.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,830
Latest member
HeleneMull

Latest Threads

Top