W3C home > Mailing lists > Public > www-style@w3.org > August 2000

New psuedo-class modifier: A:current

From: Maury Markowitz <maury@sympatico.ca>
Date: Fri, 25 Aug 2000 19:24:36 -0700
Message-ID: <009b01c00f04$c836e320$7de9fea9@gizifa>
To: <www-style@w3.org>
  I'm authoring a web site that uses a common navigation element, a block of
links on the left of the page. While I experiment with getting that alone to
work using CSS positioning on multiple browsers, I've found a number of
issues that I thing CSS could address better. So without any further ado...

  I would like to recommend the addition of the psuedo-class :current to be
used with the A tag.

  We currently have the useful A:link and A:visited, along with the suspect
(IMHO) A:active. I state that the later is suspect not because it doesn't
work, but because it seems to exist solely because it was pre-defined in a
browser - the actual style that it represents is odd, "the style of the link
while the mouse is held down on it but before you let go of the mouse
button" (I paraphrase, of course).

  So we have a style for links to other pages, and one for pages we've been
to. Ok, where's the style for the page we're currently viewing? This seems
like an obvious oversight to me.

  As a result, there's no simple way (as this newbie sees it) to create a
single navigation element with links to various pages, without hand-styling
the links for every single page to point out which one is currently active.
The addition of A:current would allow this common chore for basically zero
effort pn the author's part.

Maury
Received on Friday, 25 August 2000 19:18:48 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:05 GMT