a:active doesnt' work for me

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Wilhelm Kutting

    a:active doesnt' work for me

    Hi i got a problem running the active tag

    i use in my stylesheet definition

    #menu li a:active{
    color: #8B008B;
    }
    What didt't work out

    Using
    #menu li a:visited{
    color: #8B008B;
    }
    shows the right thing.

    How does the Browser know what the active Link is?
    And why does it not show me the active thing.
  • Els

    #2
    Re: a:active doesnt' work for me

    Wilhelm Kutting wrote:
    [color=blue]
    > Hi i got a problem running the active tag
    >
    > i use in my stylesheet definition
    >
    > #menu li a:active{
    > color: #8B008B;
    > }
    > What didt't work out
    >
    > Using
    > #menu li a:visited{
    > color: #8B008B;
    > }
    > shows the right thing.
    >
    > How does the Browser know what the active Link is?
    > And why does it not show me the active thing.[/color]

    active is only the moment you're clicking it.
    Have you set the order in your stylesheet to
    link
    visited
    hover
    active
    ?



    --
    Els http://locusmeus.com/
    Sonhos vem. Sonhos vão. O resto é imperfeito.
    - Renato Russo -
    Now playing: Status Quo - Drive My Car (live)

    Comment

    • Harlan Messinger

      #3
      Re: a:active doesnt' work for me


      "Els" <els.aNOSPAM@ti scali.nl> wrote in message
      news:Xns958682D 122549Els@130.1 33.1.4...[color=blue]
      > Wilhelm Kutting wrote:[/color]
      [snip]
      [color=blue][color=green]
      > > How does the Browser know what the active Link is?
      > > And why does it not show me the active thing.[/color]
      >
      > active is only the moment you're clicking it.[/color]

      Unless you give it the focus with the keyboard, in which case it should be
      active until it loses the focus.

      Comment

      • Els

        #4
        Re: a:active doesnt' work for me

        Harlan Messinger wrote:
        [color=blue]
        > "Els" <els.aNOSPAM@ti scali.nl> wrote in message
        > news:Xns958682D 122549Els@130.1 33.1.4...[color=green]
        >> Wilhelm Kutting wrote:[/color]
        > [snip]
        >[color=green][color=darkred]
        >> > How does the Browser know what the active Link is?
        >> > And why does it not show me the active thing.[/color]
        >>
        >> active is only the moment you're clicking it.[/color]
        >
        > Unless you give it the focus with the keyboard, in which
        > case it should be active until it loses the focus.[/color]

        Hmm.. I just tried that on my own site, but tabbing with the
        keyboard doesn't trigger the a:active styles at all.

        --
        Els http://locusmeus.com/
        Sonhos vem. Sonhos vão. O resto é imperfeito.
        - Renato Russo -
        Now playing: The Doors - I Looked At You

        Comment

        • Thomas Jespersen

          #5
          Re: a:active doesnt' work for me

          On Mon, 18 Oct 2004 12:14:54 -0400, "Harlan Messinger"
          <h.messinger@co mcast.net> wrote:
          [color=blue][color=green]
          >> active is only the moment you're clicking it.[/color]
          >
          >Unless you give it the focus with the keyboard, in which case it should be
          >active until it loses the focus.[/color]

          Aren't you thinking of the :focus pseudo-class instead?

          Comment

          • Harlan Messinger

            #6
            Re: a:active doesnt' work for me


            "Thomas Jespersen" <thomas@lucky-music.dk> wrote in message
            news:3mr7n09ibc e4s9md24mdbbid7 k08sghhgs@4ax.c om...[color=blue]
            > On Mon, 18 Oct 2004 12:14:54 -0400, "Harlan Messinger"
            > <h.messinger@co mcast.net> wrote:
            >[color=green][color=darkred]
            > >> active is only the moment you're clicking it.[/color]
            > >
            > >Unless you give it the focus with the keyboard, in which case it should[/color][/color]
            be[color=blue][color=green]
            > >active until it loses the focus.[/color]
            >
            > Aren't you thinking of the :focus pseudo-class instead?[/color]

            Um, yeah, sorry. I knew that one of the pseudo-classes did that, and since
            everyone around here talks about link, visited, active, and hover all the
            time but never mentions focus, I forgot about it.

            On that note: Why *don't * people include focus in discussions here of the
            proper way to set up styles for hyperlinks? It's especially important to
            people who interact with their devices exclusively via the keyboard.

            :link
            :visited
            :focus
            :active
            :hover

            Comment

            • Harlan Messinger

              #7
              Re: a:active doesnt' work for me


              "Harlan Messinger" <h.messinger@co mcast.net> wrote in message
              news:2tidneF1tq qffU1@uni-berlin.de...[color=blue]
              >
              > :link
              > :visited
              > :focus
              > :active
              > :hover[/color]

              Should be :hover, then :active, of course.

              Comment

              • Neal

                #8
                Re: a:active doesnt' work for me

                On Mon, 18 Oct 2004 13:45:27 -0400, Harlan Messinger
                <h.messinger@co mcast.net> wrote:
                [color=blue]
                >
                > "Harlan Messinger" <h.messinger@co mcast.net> wrote in message
                > news:2tidneF1tq qffU1@uni-berlin.de...[color=green]
                >>
                >> :link
                >> :visited
                >> :focus
                >> :active
                >> :hover[/color]
                >
                > Should be :hover, then :active, of course.
                >[/color]

                So the mnemonic would be "Las Vegas Free Hotel Accomodations"?

                Comment

                • Els

                  #9
                  Re: a:active doesnt' work for me

                  Harlan Messinger wrote:
                  [color=blue]
                  > On that note: Why *don't * people include focus in
                  > discussions here of the proper way to set up styles for
                  > hyperlinks? It's especially important to people who
                  > interact with their devices exclusively via the keyboard.[/color]

                  Good thinking, just added it to my styles too, thanks :-)

                  --
                  Els http://locusmeus.com/
                  Sonhos vem. Sonhos vão. O resto é imperfeito.
                  - Renato Russo -
                  Now playing: Skid Row - Makin' A Mess

                  Comment

                  • Harlan Messinger

                    #10
                    Re: a:active doesnt' work for me


                    "Neal" <neal413@yahoo. com> wrote in message
                    news:opsf2ug6le 6v6656@news.ind ividual.net...[color=blue]
                    > On Mon, 18 Oct 2004 13:45:27 -0400, Harlan Messinger
                    > <h.messinger@co mcast.net> wrote:
                    >[color=green]
                    > >
                    > > "Harlan Messinger" <h.messinger@co mcast.net> wrote in message
                    > > news:2tidneF1tq qffU1@uni-berlin.de...[color=darkred]
                    > >>
                    > >> :link
                    > >> :visited
                    > >> :focus
                    > >> :active
                    > >> :hover[/color]
                    > >
                    > > Should be :hover, then :active, of course.
                    > >[/color]
                    >
                    > So the mnemonic would be "Las Vegas Free Hotel Accomodations"?[/color]

                    That's beautiful, thank you very much!

                    Comment

                    • Brian

                      #11
                      Re: a:active doesnt' work for me

                      Harlan Messinger wrote:
                      [color=blue]
                      > Why *don't * people include focus in discussions here of the
                      > proper way to set up styles for hyperlinks?[/color]

                      I have in the past.



                      And my stylesheets always use a:hover and a:focus in combination.

                      --
                      Brian (remove "invalid" to email me)

                      Comment

                      • David

                        #12
                        Re: a:active doesnt' work for me

                        "Harlan Messinger" <h.messinger@co mcast.net> wrote in message news:<2tidneF1t qqffU1@uni-berlin.de>...[color=blue]
                        >
                        > On that note: Why *don't * people include focus in discussions here of the
                        > proper way to set up styles for hyperlinks? It's especially important to
                        > people who interact with their devices exclusively via the keyboard.[/color]


                        Instantly goes from "something I'd never considered", to No1 position
                        in my "things I must do" list. Brilliant. Can't believe hadn't thought
                        of it before.

                        Comment

                        Working...