Please have a look at my snippet. I have 3 groups, the first group(.grp-big) is a bit bigger than group 2 and 3 (.grp).
I used .min-width to force the groups to wrap "down" if the browser doesn't have enough space.
If you run the snippet in full browser, the groups are way larger than 250px. however .grp-big is always 100px larger .grp.
Why does it behave that way and what should I do to make the groups all the same size if there's enough space?
EDIT Seems to be an IE11 issue only.
.container{
display:flex;
flex-wrap:wrap;
}
.grp{
flex:1;
min-width: 150px;
display: flex;
flex-direction: column;
}
.grp-big{
flex:1;
min-width: 250px;
display: flex;
flex-direction: column;
}
.item{
display:flex;
margin:3px;
}
label {
width:25px;
}
input{
flex:1;
}
<div class="container">
<div class="grp-big">
<div class="item">
<label>L1</label>
<input type="text"></input>
</div>
<div class="item">
<label>L11</label>
<input type="text"></input>
</div>
</div>
<div class="grp">
<div class="item">
<label>L2</label>
<input type="text"></input>
</div>
<div class="item">
<label>L21</label>
<input type="text"></input>
</div>
</div>
<div class="grp">
<div class="item">
<label>L3</label>
<input type="text"></input>
</div>
<div class="item">
<label>L31</label>
<input type="text"></input>
</div>
</div>
</div>