W3C home > Mailing lists > Public > www-style@w3.org > May 2014

Re: [selectors] Self-referential link pseudo-class

From: Simon Sapin <simon.sapin@exyr.org>
Date: Wed, 07 May 2014 12:52:17 +0100
Message-ID: <536A1E71.8010208@exyr.org>
To: Antony Kennedy <antony@silversquid.com>
CC: www-style@w3.org
On 07/05/2014 12:46, Antony Kennedy wrote:
> Also, I’m not sure how one would target only the exact URL that you are
> currently on (excluding hash, etc)?
>
> In my previous example:
>
>>>> <ul>
>>>> <li><a href=“home.html“>Home</a></li>
>>>> <li><a href=“about.html“>About us</a></li>
>>>> </ul>
>
> …when on home.html, how would style just that link?

I believe that’s :local-link without parentheses.

-- 
Simon Sapin
Received on Wednesday, 7 May 2014 11:52:40 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:51:26 UTC