How to apply if input:focus
then parent (div)
change color of border?
div {
width: 150px;
height: 26px;
border: 1px solid #ccc;
background: white;
}
input {
outline: none;
border: none;
}
<div>
<input type="text" />
</div>
and div must have border: 1px solid blue;
if <input>
focused.