Why is these labels don't share the extra space equally (divide the all available space evenly). Despite having flex: 1 1 auto
.
body {
padding: 0;
margin: 0;
}
.wrap {
position: absolute;
width: 100%;
height: 100%;
}
group {
display: flex;
flex-flow: row wrap;
}
group div {
background: gray;
flex: 1 1 auto;
}
label {
padding: 0.2em;
display: flex;
justify-content: center;
}
label.red {
background: red;
}
<div class='wrap'>
<group>
<div>
<label>Label 1</label>
</div>
<div>
<label class='red'>Label 2</label>
</div>
</group>
<group>
<div>
<label class='red'>Short 1</label>
</div>
<div>
<label>Longer 2</label>
</div>
</group>
<group>
<div>
<label>Triple 1</label>
</div>
<div>
<label class='red'>Triple 2</label>
</div>
<div>
<label>T3</label>
</div>
</group>
</div>