Style a parent element based on its number of children using CSS :has()        
          CRANK
        
      
    
    Leverage CSS :has() and :nth-child() to style a parent based on the number of children it has.
      
        1 comments      
    
    
    
Style a parent element based on its number of children using CSS :has() zpr.io/MdA8MYTGvcCr