I'm struggling with aligning a flexbox list. I have a row of 3 elements, but when there are only 2 elements on the row, there's a gap in the middle.
My goal is to have a row with 2 elements look like x x o. However, my current code displays the elements as x o x. Additionally, I've noticed that the elements aren't perfectly centered within their container.
Here's an example:
My ul is configured as follows:
display:flex;
flex-flow: row wrap;
width:100%;
justify-content: space-between;
align-items: center;
And the li has the following styles:
{
color:black;
font-size:16px;
margin-bottom:20px;
width: calc(100% / 3);