My pen: https://codepen.io/helloworld/pen/XopoYa
When I click into the input control the background gets gray.
What I want is that the left and right colum also gets gray.
How is that possible without using JS?
HTML
<div id="container">
<div class="column left">
left
</div>
<input type="search" class="column center">
</input>
<div class="column right">
right
</div>
</div>
CSS
#container {
display: flex;
background:orange;
flex:1;
width:100%;
height:50px;
}
.column.left {
background:blue;
width: 230px;
flex: 0 0 230px;
}
.column.right {
width: 230px;
flex: 0 0 230px;
border-left: 1px solid #eee;
background: red;
}
.column.center {
border-left: 1px solid #eee;
flex-grow:1;
background:white;
border: 1px blue solid;
}
.column.center:focus{
background:gray;
}