Answers for "how to select elements from a parrent element css"

CSS
0

secltor for parent li css

//in css no way!
//but in java can use this:
$("a.active").parents('li').css("property", "value");
Posted by: Guest on November-18-2020
0

how to select elements from a parrent element css

// select all p elements with div as parent

div > p {
  background-color: yellow;
}
Posted by: Guest on November-29-2020

Code answers related to "how to select elements from a parrent element css"

Browse Popular Code Answers by Language