https://i.sstatic.net/nC2PI.png
Can a flexible ul li structure be achieved with flexbox? I attempted to set the width of the squares to 25% and make the 1st, 3rd, or 5th one 50% wide using a combination of float:left, clear[left|right], but the last square ends up dropping to a single row.
HTML:
<ul id="test">
<li class="item">
A
</li>
<li class="item">
B
</li>
<li class="item">
C
</li>
<li class="item">
D
</li>
<li class="item">
E
</li>
</ul>
CSS:
#test {
list-style:none;
width:100%;
}
.item {
width:33%;
float:left;
background-color: #444
}