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

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 }

Uh.

http://www.w3.org/TR/CSS2/selector.html#attribute-selectors

--Kynn

-- 
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