I can't work out why the last item stretches to fill the width of the container, how can I change things so that it only fills 50% like the others?
.container {
margin-top: 30px;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.item {
flex: 50%;
background:green;
}
<div class="container">
<div class="item">
Item
</div>
<div class="item">
Item
</div>
<div class="item">
Item
</div>
<div class="item">
Item
</div>
<div class="item">
Item
</div>
</div>