I am currently trying to display 2 item on the same line using Flexbox, in the exemple below I would like to display Item 1
and Item 2
on the same line
I already tried to add flex: 1 0 50%;
But it doesn't work
.container {
flex: 1;
display: flex;
border: 1px solid #000;
background: #FFF;
flex-direction: column;
}
.item {
padding: 14px;
margin: 12px;
background: #ED8896;
}
<div class="container">
<div class="item">1</div>
<div class="item">2</div>
<div class="item">3</div>
<div class="item">4</div>
</div>