Hello, I am a newcomer to utilizing flexbox in CSS. I have these "boxes" that need to maintain their width and wrap when the screen size is small.
On a large screen:
https://i.sstatic.net/dXnGC.png
On a small screen:
https://i.sstatic.net/8rZso.png
.container {
margin-top: 1em;
display: flex;
justify-content: space-around;
.item {
flex-grow: 1;
flex-basis: auto;
text-align: center;
margin-left: 1em;
border:1px solid black;
}
}
I aim to maintain the appearance of the boxes as they are on a large screen but have the last one wrap and be centered, for instance.
Here is the link to the codepen: http://codepen.io/anon/pen/xwbNXY
Thank you.