Can we select parent in CSS?

Is there any way in CSS that can help to select the parent of an element and apply  styles to it. I want to add styling to an

  • which has a child element with active class.

  • Ask question now
    Never leave your website again in search of code snippets by installing our chrome extension.