$ 0 0 The accepted solution uses the adjacent sibling selector which is actually a feature of CSS 2.1.