how to check if child has class in css code example Example: css if child has class .parent>.child-class { /* Styling goes here */ }