How would I select all but the last child using CSS3 selectors?
For example, to get only the last child would be div:nth-last-child(1).
div:nth-last-child(1)
When IE9 comes, it will be easier. A lot of the time though, you can switch the problem to one requiring :first-child and style the opposite side of the element (IE7+).