Let's have a look at this very simple code:
<div class="search-box">
<input type="text" class="input-search">
</div>
What I'm trying to achieve?
When I'm in :focus on the .input-search
, I want it to change the background-color of the whole .search-box
I did try this but it seems to not work because I am probably selecting something wrong:
.input-search:focus{
background-color: #fff;
}
However, I have no idea how to apply this same effect to the .search-box class.
Thanks for any help yall!