I have three divs in a wrapper div and I'd like to fill left and right divs when the center div has a fixed size, no matter the wrapper size.
So, the result I want is something like the below image.
How can I do this?
.wrapper{
background-color: red;
height: 200px;
width: 100%;
display:flex;
flex-direction:row;
}
.left{
background-color: blue;
}
.center{
background-color: yellow;
width: 200px;
margin-left:auto;
margin-right:auto;
}
.right{
background-color: blue;
}
<div class="wrapper">
<div class="left">
left
</div>
<div class="center">
center
</div>
<div class="right">
right
</div>
</div>