Is it possible to center the last element when resizing the window to a smaller resolution, even though the parent's justify-content
parameter is set to space-between
? I understand that using center
or space-around
would achieve the desired result, but I specifically need it to be set to: space-between
.
ul {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
background: rgba(255, 0, 0, 0.3);
padding: 0;
}
li {
list-style-type: none;
display: inline-block;
min-width: 100px;
height: 100px;
background: red;
margin: 10px;
}
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>