style if class and not child has class code example Example: css if child has class .parent>.child-class { /* Styling goes here */ }