1
It may be something kind of stupid or even a double question, but like everything I know about css
is tested and I have no idea how to google, I decided to ask this question.
The thing is, I have the following form:
<form class="form-inline my-0 my-lg-0 lozano-search">
<input type="search" placeholder="buscar" aria-label="Buscar">
<button type="submit"><img src="images/icon-search.svg"></button>
</form>
With the following css:
.lozano-search {
padding: 5px;
border-radius: 10px;
max-width: 200px;
border: 2px solid #CCCCCC;
}
That generates this result:
I want to change the parent element, in this case the form
when the input
is in focus, like this:
.lozano-search input:focus .lozano-search{
border: 2px solid #F67300;
}
To get that result:
Now I know what pseudo classes are for. I’ve never used.
– Andrei Coelho
Thank you very much Hugo!
– Andrei Coelho
@Andreicoelho without problems my dear, I am happy to have helped, has a list of all pseudo-classes on the Mozilla site, there is a lot of interesting stuff there later look for. Abs
– hugocsl