I want to apply certain styles to all <p> elements that don't have nested <a> tags in them. I tried to use the :not() selector like this: p:not(a){ /✱style✱/ } but that did not affect anything. Is there a way to accomplish this? I'm still a beginner at this.
            Asked
            
        
        
            Active
            
        
            Viewed 25 times
        
    0
            
            
        - 
                    One css pseudo class I can think of is `:has`, but it is experimental. You can use javascript to achieve what you want. – Morpheus Sep 05 '18 at 14:45
- 
                    Which browsers would support this? – FrankenCode Sep 06 '18 at 23:50
- 
                    None as per https://caniuse.com/#search=%3Ahas – Morpheus Sep 07 '18 at 09:00
