I am three items in a row. I want to keep first two items 50% 50% of the row and push the next third item to the next row and cover the 100% of the row.
.container {
display: flex;
flex-wrap: nowrap;
justify-content: space-between;
}
.div1, .div2 {
flex: 0 0 50%;
}
.div3{
flex: 1;
}
html markup
<div class="container">
<div class="div1"></div>
<div class="div2"></div>
<div class="div3"></div>
</div>
What I want is first two elements lined together in one row and third element pushed to next row covering 100%;