I want select div.second when input has focused , how can do it ?
html
<div class="first">
<div class="first-1">
<div class="first-1-2">
<input type="text" name="" id="" />
</div>
</div>
</div>
<div class="second">hello</div>
css
.first .first-1 .first-1-2 input:focus+ .second {
background-color: green;
}
this css does not work !