I have the following case, a parent div with 5 child divs, and I need them to align two by two, using the space-between in the parent div:
.pai{
display: flex;
justify-content: space-between;
flex-wrap: wrap;
width:200px;
}
However the daughter div is small enough to fit more than two inside the parent div. Is there any way to leave only two per line within the parent div?
Example:
.pai{
width:280px;
display:flex;
justify-content:space-between;
flex-wrap:wrap;
background:#ccc;
}
.filha{
height:40px;
width:75px;
border:1px solid red;
}
<div class="pai">
<div class="filha">
</div>
<div class="filha">
</div>
<div class="filha">
</div>
<div class="filha">
</div>
<div class="filha">
</div>
</div>