3

I have a div and an input inside the div.

<div id="div">
    <input type="text" placeholder="search"/>
</div>

When the input is active I want #div to be affected. Something like this:

#div input:active -> affect #div{
    background:white;
}

There is questions similar to this but they are for objects inside input or whatever div.

Thanks in advance.

David Callanan
  • 3,296
  • 2
  • 35
  • 70

0 Answers0