- From: fantasai <fantasai@escape.com>
- Date: Sat, 10 Nov 2001 02:20:18 -0500
- To: www-style@w3.org
Tim Phipps wrote: > > i.e. I'm trying to get hypertext links to have a solid background but > not if they have pictures (it spoils all those lovely anti-alias buttons > that web designers love). > > I did think of using: > > A:Link { Background: Blue; Color Yellow; } > A:Contains(Img) { Background: Transparent; } :contains() takes a string as a parameter, not an element (it looks at the element's textual content). What you're looking for is the ability to select the parent element, which was taken out of the CSS3 Selectors module by the last working draft. (IIRC, the argument was performance problems... I wonder, though-- wouldn't :contains() have the same problem?) BTW, if you're selecting links, you don't need the A--just :link will do. CSS3 Selectors Last Call Working Draft: http://www.w3.org/TR/2001/WD-css3-selectors-20010126/
Received on Saturday, 10 November 2001 02:17:40 UTC