Sandy wrote:
> Browser support isn't too big an issue for this - the site works without 
> it, this just adds a little extra.
>   
A bit of unobtrusive Javascript would be a good fit here.
> http://www.w3.org/TR/css3-selectors/#target-pseudo
> If I understand :target pseudo-class (which I don't necessarily!) it 
> looks like you can take, say, all the anchor links and style them. It 
> seems to be about creating groups, and giving them a treatment.
>   
The :target pseudo-class refers to the fragment identifier portion of 
your current URI.

So if you're current URI is http://www.blah.com/blah/index.htm#example
AND in that pages markup there is an element with an id attrib equal to 
'example', you could give that element a border using this css rule:

*:target {border:1px solid #C00;}

So, if you were willing to apply an id attrib and matching fragment 
identifiers to each of your menu links you could achieve your goal.  I 
won't recommend it though; it feels like an abuse of the fragment 
identifier, and the focus of each page will initially be one of your 
menu items--an unusual (confusing) page behavior for both mouse and 
keyboard users.


-- 
----------------//
Shawn Lawler
Institute on Community Integration
University of Minnesota

______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to