Using 9999 Flex Grow Trick
from: http://joren.co/flex-grow-9999-hack/
by Konstantin Rouda
HTML
<div class="flex-container">
<div class="flex-item red">To be or not to be</div>
<div class="flex-item blue">
That is the question!
</div>
</div>
CSS
.flex-container {
display: flex;
flex-wrap: wrap;
border: 3px solid #0bf;
border-radius: .2em;
max-width: 500px;
margin: 5em auto 0;
color: #fff;
}
.red {
background: #e28686;
flex-grow: 99; /*or we can use 9999*/
flex-basis: 20em;
}
.blue {
background: #5e84e4;
flex-grow: 1;
}
HTML {
font-size: 16px;
line-height: 1.5;
box-sizing: border-box;
}
*,*:before, *:after {
box-sizing: border-box;
}
JavaScript
// From http://joren.co/flex-grow-9999-hack/