check if class has child class then update another child css code example Example: css if child has class .parent>.child-class { /* Styling goes here */ }