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

Discussion in 'HTML' started by crispy, Nov 30, 2003.

  1. crispy

    crispy Guest

    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%
    }
     
    crispy, Nov 30, 2003
    #1
    1. Advertising

  2. crispy <> wrote:

    > 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)
     
    David Dorward, Nov 30, 2003
    #2
    1. Advertising

  3. crispy

    Steve Pugh Guest

    crispy <> wrote:

    >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

    --
    "My theories appal you, my heresies outrage you,
    I never answer letters and you don't like my tie." - The Doctor

    Steve Pugh <> <http://steve.pugh.net/>
     
    Steve Pugh, Nov 30, 2003
    #3
  4. crispy

    brucie Guest

    in post <news:>
    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.


    <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




    --
    brucie
    01/December/2003 07:40:47 am kilo
     
    brucie, Nov 30, 2003
    #4
  5. crispy

    crispy Guest

    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?


    On Mon, 1 Dec 2003 07:41:57 +1000, brucie
    <> wrote:

    >in post <news:>
    >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.

    >
    ><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
    >
     
    crispy, Dec 8, 2003
    #5
  6. crispy

    brucie Guest

    brucie, Dec 8, 2003
    #6
  7. crispy

    MLC Guest

    Il 08/dic/2003 brucie ha scritto:

    > http://moreshit.bruciesusenetshit.info/menu/page1.html


    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,
    --
    Maria Luisa C - 08/12/2003 11.18.13, here.
    un tutorial sulle Espressioni Regolari:
    http://fido.altervista.org/
    Now playing: nothing, and savouring the silence.
     
    MLC, Dec 8, 2003
    #7
  8. crispy

    brucie Guest

    in post <news:-berlin.de>
    MLC said:

    >> http://moreshit.bruciesusenetshit.info/menu/page1.html


    > 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.

    --
    brucie
    08/December/2003 08:34:30 pm kilo
     
    brucie, Dec 8, 2003
    #8
  9. crispy

    MLC Guest

    Il 08/dic/2003 brucie ha scritto:

    > in post <news:-berlin.de>
    > MLC said:
    >
    >>> http://moreshit.bruciesusenetshit.info/menu/page1.html

    >
    >> 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.


    Thank you. It was new to me, and seems a good idea.
    --
    Maria Luisa C - 08/12/2003 15.31.30, here.
    un tutorial sulle Espressioni Regolari:
    http://fido.altervista.org/
    Now playing: nothing, and savouring the silence.
     
    MLC, Dec 8, 2003
    #9
  10. crispy

    Mark Parnell Guest

    Sometime around Mon, 8 Dec 2003 19:12:42 +1000, brucie is reported to have
    stated:

    > in post <news:>
    > crispy said:
    >
    >> 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?

    >
    > http://moreshit.bruciesusenetshit.info/menu/page1.html
    >


    Very nice. I have been considering a server-side solution to this - making
    them not a link, rather than a different colour, but this looks like a much
    nicer solution.

    --
    Mark Parnell
    http://www.clarkecomputers.com.au
     
    Mark Parnell, Dec 8, 2003
    #10
  11. crispy

    Wipkip Guest

    While sitting in a puddle Mark Parnell scribbled in the mud:

    > Sometime around Mon, 8 Dec 2003 19:12:42 +1000, brucie is reported to
    > have stated:
    >
    >> in post <news:>
    >> crispy said:
    >>
    >>> 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?

    >>
    >> http://moreshit.bruciesusenetshit.info/menu/page1.html
    >>

    >
    > Very nice. I have been considering a server-side solution to this -
    > making them not a link, rather than a different colour, but this looks
    > like a much nicer solution.
    >


    Here is the one I have on my polls.
    http://wipkip.us/out/php_nav.zip

    http://wipkip.biz/polls/index.php

    --
    Duende
     
    Wipkip, Dec 9, 2003
    #11
  12. crispy

    crispy Guest

    crispy, Dec 13, 2003
    #12
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Joshua Beall
    Replies:
    1
    Views:
    440
    Bertilo Wennergren
    Dec 10, 2003
  2. Frank P.

    CSS: active link?

    Frank P., Aug 3, 2004, in forum: HTML
    Replies:
    11
    Views:
    8,075
  3. Noozer
    Replies:
    10
    Views:
    2,117
    Mitja
    Oct 13, 2004
  4. MZ
    Replies:
    7
    Views:
    832
    Ed Mullen
    Mar 17, 2008
  5. friday13
    Replies:
    3
    Views:
    203
    friday13
    Apr 28, 2007
Loading...

Share This Page