a:active pseudo-class

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andrew Thompson

    a:active pseudo-class

    I would like to create a menu that uses the 'active'
    pseudo-class to highlight the current page, but I
    cannot get it to work.

    The URL http://www.lensescapes.com/tst/nav/1.jsp
    shows the attempts so far, there are links to 3 pages,
    but (in IE6 and Mozilla?on XP) do not render the
    link of the current page as yellow on blue.

    What am I doing wrong, or is my understanding wrong?

    --
    Andrew Thompson






  • David Dorward

    #2
    Re: a:active pseudo-class

    Andrew Thompson wrote:
    [color=blue]
    > I would like to create a menu that uses the 'active'
    > pseudo-class to highlight the current page, but I
    > cannot get it to work.[/color]
    [color=blue]
    > What am I doing wrong, or is my understanding wrong?[/color]

    Your understanding is wrong.



    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.

    --
    David Dorward http://dorward.me.uk/

    Comment

    • Andrew Thompson

      #3
      Re: a:active pseudo-class

      "David Dorward" <dorward@yahoo. com> wrote in message
      news:bhflop$fdo $1$8300dec7@new s.demon.co.uk.. .[color=blue]
      > Andrew Thompson wrote:
      >[color=green]
      > > I would like to create a menu that uses the 'active'
      > > pseudo-class to highlight the current page, but I
      > > cannot get it to work.[/color]
      >[color=green]
      > > What am I doing wrong, or is my understanding wrong?[/color]
      >
      > Your understanding is wrong.
      >
      > http://www.w3.org/TR/CSS2/selector.h...pseudo-classes
      >
      > The :active pseudo-class applies while an element is being activated by[/color]
      the[color=blue]
      > user. For example, between the times the user presses the mouse button and
      > releases it.[/color]

      Dang!

      Thanks David. I'll look into a server-side solution..

      --
      Andrew Thompson






      Comment

      Working...