In CSS, there is currently no mechanism to pick an element's parent. It would be in any of the current CSS selectors specs if there was a way to accomplish it: Level 3 Selectors Spec.