Jump to content

Who stole the Descendant & Child Selectors?


danthman

Recommended Posts

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-selectorshttp://www.w3.org/TR/CSS2/selector.html#child-selectorsIt 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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...