how to select elements from a parrent element css code example
Example 1: secltor for parent li css
//in css no way!
//but in java can use this:
$("a.active").parents('li').css("property", "value");
Example 2: how to select elements from a parrent element css
// select all p elements with div as parent
div > p {
background-color: yellow;
}