Help - Search - Members - Calendar
Full Version: Who stole the Descendant & Child Selectors?
W3Schools Forum > W3Schools > Suggestions
danthman
Dear W3Schools,

I've found your tutorials to be extremely useful. I do have one suggestion, however. The concept of Descendant & Child Selectors seems to be entirely missing from your CSS tutorial. I was relying on the CSS Syntax page as a comprehensive list of all the available ways to form selectors, but when I couldn't figure out how to style table cell (i.e., td) elements on an ASP.NET GridView, I began to wonder if some concepts were missing. I eventually tracked down the following two sections of the CSS2 Specification, which solved my problem:

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

It would have saved a lot of hassle if these were discussed at least somewhere in the tutorial, even if it's a section under CSS Advanced.

Thanks very much,

-Dan
Ingolme
Child selectors don't work with Internet Explorer 6. But I don't see a reason why they woudn't put descendant selectors in the tutorial.
danthman
Thanks for the reply. Actually, it was really the descendant parameters I needed in this case. I'm not sure I can think of a scenario where I'd actually *need* a child selector (though it might save some trouble), but as far as I know, it was completely impossible to style the td's of an ASP.NET GridView without a descendant selector.

In any case, I still would like to see as much information as possible in the tutorial (not necessarily in depth, but at least a mention with a link). Sometimes, it's as helpful to know what doesn't work as what does work. For example, I was trying to use the minimum/maximum width and height properties for a particular layout, but when I read in the tutorial that it doesn't work in IE, I found a different solution.

-Dan
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.