W3C home > Mailing lists > Public > www-style@w3.org > July 2002

Re: FW: a:hover and a:active and named anchors

From: Kynn Bartlett <kynn@idyllmtn.com>
Date: Fri, 26 Jul 2002 07:51:18 -0700
Message-Id: <a05101001b96711fdf9ea@[]>
To: "Peter Foti (PeterF)" <PeterF@SystolicNetworks.com>, "'www-style@w3.org'" <www-style@w3.org>

At 10:51 AM -0400 7/26/02, Peter Foti (PeterF) wrote:
>Are there any plans for CSS to be able to select an element that has a
>particular attribute?  For example, suppose I want to style only the <a>
>elements that have an href attribute.  Perhaps something like this:
>a[href] { background-color: #f00 }
>Then to expand this even further, perhaps you could also select an element
>that has a particular attribute that has a particular value.  For example:
>a[href="http://www.w3c.org"]:hover {background-color: #f00 }
>a[target="_blank"]:hover { background-color: #0f0 }




Kynn Bartlett <kynn@idyllmtn.com>                 http://kynn.com
Chief Technologist, Idyll Mountain            http://idyllmtn.com
Next Book: Teach Yourself CSS in 24       http://cssin24hours.com
Kynn on Web Accessibility ->>          http://kynn.com/+sitepoint
Received on Friday, 26 July 2002 10:51:31 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:02 UTC