[thelist] CSS Contextual Selectors (was "Aimster must give up domain to AOL")

James Aylard webmaster at equilon-mrc.com
Mon May 21 16:59:21 CDT 2001


Matt,

> No, but IE5/Mac Opera 5 and Mozilla/Netscape 6 is pretty good, and IE6
beta
> certainly supports P+P and I think that 5 and 5.5 do to - although I can't
> remember for certain.

    This kind of contextual selector won't work in *any* version of IE,
including the IE 6 beta. That's the big drawback.
    In IE 4+ you can use descendant selectors:

p span {
   font-weight: bold ;
}

...meaning that any <span> element that is a descendant of a <p> element
will, in this example, be bolded. But not child selectors (p > span) or
immediate predecessor selectors (p + span), or most of the other very
powerful selector types described in the CSS 2 recommendation. That is one
of the big weaknesses of IE's CSS implementation.

James Aylard





More information about the thelist mailing list