I'm looking for the correct CSS grid syntax to wrap as many child elements in a row and then wrap when no more room.
I have an example set here: https://codepen.io/velnias2015/pen/xeeJrZ
Markup:
<div class="container">
<span>Spain</span>
<span>France</span>
<span>Germany</span>
<span>Ireland</span>
<span>United Kingdom</span>
<span>Uruguay</span>
</div>
CSS
display: grid;
grid-auto-flow: column;
grid-gap: 0.5rem;
Right now my problem is that the content is not wrapping. Every child element can have a different width based on content. I just want to have as many per row as it can fit, even just 1 and then wrap.