active??? css pseudo-class

edited June 2007 in Internet & Media
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?

Comments

  • airbornflghtairbornflght Houston, TX Icrontian
    edited June 2007
    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.
  • edited June 2007
    It also stays in the "active" state if you click down on the mouse and don't let go.
  • jaredjared College Station, TX Icrontian
    edited June 2007
    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
  • edited June 2007
    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
Sign In or Register to comment.