"Anyway, I'd like to clear up something about :last-child (and, by
extension, :first-child). 'body:last-child' means "select any body
element that is the last child of its parent element". It does NOT
mean "select the last child element of the body element". To do the
latter, you'd write 'body > *:last-child'. If you just write 'body
*:last-child', that would select any element that is the last child
of another element and is also a descendant of the body element.
'body > *:last-child' selects any element that's the last child of
another element and is also a child of the body element, which pretty
much restricts you to just the body's last child.
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
Eric A. Meyer (http://meyerweb.com/eric/), List Chaperone
"CSS is much too interesting and elegant to be not taken seriously."
-- Martina Kosloff (http://mako4css.com/)