parent selector taking child css code example
Example 1: styles for parent of selector
Short answer: no such selector exists. Use JavaScript
Long answer: by Kaotik below
Example 2: secltor for parent li css
//in css no way!
//but in java can use this:
$("a.active").parents('li').css("property", "value");