I have a flex container with 3 children. On each child max-width
and min-width
is set, so that when the screen size changes, I can have them look decent without too much effort.
.container{
display: flex;
flex-flow: row wrap;
justify-content: space-between;
margin-right: -10px;
}
.child{
flex-grow: 1;
max-width: 450px;
min-width: 350px;
margin-top: 10px;
margin-right: 10px;
background: blue;
height: 400px;
}
<div class="container">
<div class="child">
test content
</div>
<div class="child">
test content
</div>
<div class="child">
test content
</div>
</div>
The problem is that when the screen becomes so small that 1 of the children is forced to a new row, it doesn't have the same size as the other 2 children above it:
Is there anyway to force the child on the new row to have the same width as its siblings?
Fiddle: https://jsfiddle.net/1ekdkbvk/