not property css with parent child code example
Example 1: styles for parent of selector
Short answer: no such selector exists. Use JavaScript
Long answer: by Kaotik below
Example 2: select parent of elemt
$(this).parent(); // jquery
Short answer: no such selector exists. Use JavaScript
Long answer: by Kaotik below
$(this).parent(); // jquery