[thelist] CSS2 Child selectors in IE5/Win

Denis, David DDenis at inlumen.com
Mon Apr 9 22:00:05 CDT 2001


> I noticed recently that IE5/Win does seem to support CSS2 
> Child selectors,
> but only if the elements are separated by white space. i.e. 
> body>div won't
> work but body > div will. I thought it was generally accepted (for
> example 
> http://www.webreview.com/style/css2/charts/selectors.shtml) that
> IE5/Win and IE5.5/Win didn't support Child Selectors, but this example
> suggests otherwise:
> 
> http://members.evolt.org/astro38/cssexample.html
> 
> Anyone know what the deal is?

Um...maybe you had Mozilla open when you did this, child selectors aren't
supported in IE 5.

the following works fine in Mozilla 0.8 (and I imagine Netscape 6):

<html>
<style>
body > h1 {
color: blue;
}
</style>

<body>
	<h1>neato</h1>
</body>
</html>

But not in IE 5.5.  I can't speak for IE 6.

Dave




More information about the thelist mailing list