I asked this earlier, but the more I look at what he's asking me the more I see I got the issue wrong.
Here's the sample HTML again: <a id="anchor" name="anchor"></a> <p><a href="http://flickr.com"><img src="http://flickr.com/foo/picture-ID" /></a></p> <p>Here is an <a href="http://example.com">example link</a>.</p> The rule he wants to set is: IF an A element does NOT have a child element IMG, THEN apply this style. In XSLT, this would be something like <xsl:if test="not(a/img)"> (task) </xsl:if> But the more I look at CSS3 selectors, the more I wonder if this is a relationship that's available in CSS. I can select an IMG element following an A element (A + IMG), but I can't test an A element to see if it has a child element named IMG and then style A if so/not so. Or am I missing something? It wouldn't surprise me if I was. dw -- Dylan Wilbanks Seattle, WA Wired since 1972. Online since 1992. http://clientandserver.com || http://seattle.metblogs.com ______________________________________________________________________ css-discuss [[email protected]] 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/
