PDA

View Full Version : active??? css pseudo-class


manuleka
10 Jun 2007, 1:31am
ok i've been working on my site, and with css pseudo-class

a.browse:link
a.browse:visited
a.browse:hover
a.browse:active

here's how i set my code on css... realising that hover must come after link and visited and active after hover!

a.browse:link, a.browse:visited{blah blah blah}
a.browse:hover{blah}
a.browse:active{blah}

i don't really see the active effects, which makes me wonder what does it really do? or when does it happen?

does active occur between the clicking and the starting of the next page reload?

airbornflght
10 Jun 2007, 1:40am
yes, that's when active. there really isn't a whole lot of use for it now days since page loads are almost instantaneous with broadband.

bitwise
11 Jun 2007, 4:54am
It also stays in the "active" state if you click down on the mouse and don't let go.

jared
12 Jun 2007, 2:55am
The four selectors are:

A:link
Defines the style for normal unvisited links.

A:visited
Defines the style for visited links.

A:active
Defines the style for active links.
A link becomes active once you click on it.

A:hover
Defines the style for hovered links.
A link is hovered when the mouse moves over it.
Note: Not supported by Netscape browsers prior to version 6.


http://www.echoecho.com/csslinks.htm

cheers

manuleka
14 Jun 2007, 10:11am
thanks guys! :) i don't really see much usefullness with active but i'll leave it in my code... doesn't hurt to have a few extra lines i suppose