I'm trying to use justify-content
to properly justify divs inside my container, but this option is not working the way I expected. I want my div's inside the container to keep order in the second row of my example like so:
1 2 3
4 5
and not like:
1 2 3
4 5
.container {
display: flex;
width: 1100px;
justify-content: space-between;
flex-wrap: wrap;
}
.container > div {
width: 330px;
height: 125px;
background-color: rgba(18, 28, 41, 0.50);
border: 1px solid #325E82;
}
<div class="container">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
Codepen: https://codepen.io/anon/pen/pryWYZ