Re: [css-d] Way to select last child?

2005-11-10 Thread Gunlaug Sørtun
Chris Perkins wrote: > I'm using XHTML 1.1 and I'd really like to have a construct like > this: > #info *:last-child {margin-bottom: 0px; } > I seem to recall that lastChild is a valid entity in the W3C DOM, but > I'm having a devil of a time looking up to see if it is actually a > valid CSS s

[css-d] Way to select last child?

2005-11-10 Thread Chris Perkins
I'm using XHTML 1.1 and I'd really like to have a construct like this: #info *:last-child {margin-bottom: 0px; } to set the bottom margin of the last element in the #info container to 0. I seem to recall that lastChild is a valid entity in the W3C DOM, but I'm having a devil of a time looking