I have a flex container with 5 items set to flex(1 1 20%)
. Each item has the same width (initially set to have 20% width of the container). All good.
.container {
display: flex
flex-wrap: wrap;
}
.item {
flex: 1 1 20%;
}
I am expecting the items to wrap (see http://jsfiddle.net/edag6amx/4/), but I can't get it working under Safari or Chrome. Works well in FF and Edge.
If I change the item's flex-basis
to auto
(flex: 1 1 auto
) it will start wrapping as expected.
Any suggestions please?
Thanks.