I want to make a text input in a form block. I want when the placeholder is not showed (so with #myid:not(:placeholder-shown)) a h1 title change his background color. The problem is that my h1 title is not inside the form block but directly in the body block. Do you know a symbol like this one > but that select a parent element ?
I want something like this assuming < is a " parent selector ": 
#myid < #hisparentid < #theparentidofmyid'sparent > #myh1id
            Asked
            
        
        
            Active
            
        
            Viewed 28 times
        
    0
            
            
         
    
    
        Dacapo
        
- 17
- 6
- 
                    As of now CSS dont have a selector for selecting the parent. You can view this thread https://stackoverflow.com/questions/1014861/is-there-a-css-parent-selector – Yor Nov 14 '20 at 10:47
- 
                    1Does this answer your question? [Is there a CSS parent selector?](https://stackoverflow.com/questions/1014861/is-there-a-css-parent-selector) – corn on the cob Nov 14 '20 at 10:51
- 
                    you will need javascript to select a parent to apply style to :( – G-Cyrillus Nov 14 '20 at 10:56
- 
                    Corn on the cob yeah thnx – Dacapo Nov 14 '20 at 13:20