On 11/16/06, Eric A. Meyer <[EMAIL PROTECTED]> wrote: > Similarly, 'body:first-child' would select any body element that's > the first child of its parent (which is html) -- and since every > document I've ever seen has at least a head element before the body > element, 'body:first-child' would fail to find any matches. To do > your own translations of selectors like this, check out the > SelectORacle at <http://gallery.theopalgroup.com/selectoracle/>. > Anyway, this could be (and apparently is being) used as a CSS hack > to feed "advanced" CSS to browsers that understand :last-child, in a > manner very much similar to the 'html>body' hack. Whether that's > actually a good idea probably depends on your opinion of CSS hacks in > general. >
This kind of hack is just the kind of thing I was referring to here: http://frontend.blogsome.com/2006/11/12/valid-css-is-irrelevant/ -- Chris Ovenden http://thepeer.blogspot.com "Imagine all the people / Sharing all the world" ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/