Answer the question
In order to leave comments, you need to log in
The task at focus to change style of the next block?
I have the following code
<div class="1">
<span class="2">Цена, например</span>
<input class="3" type="text"/>
</div>
Answer the question
In order to leave comments, you need to log in
Swap input with span, then you can do this:
input:focus + span {
color:#f00;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question