General Web-Development

Anything which doesn’t fit in a more specific category

Previous sibling, the missing CSS selector?

CSS 2.1 has some really handy selectors, one of which is the adjacent (next) sibling selector which has the form: el1 + el2 { color:#f0f; } The above would apply a tasty pink(ish) text colour to el2 where it directly follows el1 in HTML element order. Excellent, that can be seriously useful. The glaring omission More >