I'm trying to make a layout where div blocks of paragraphs wrap from left to right, each with a fixed width. Something like this:
However what I got is this, somehow the flex items are stacked on the left:
Code snippet here:
.things {
padding: 0;
margin: 0;
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-flex-flow: row wrap;
flex-flow: row wrap;
}
.thing {
padding: 10px;
margin: 10px;
width: 300px;
}
<div class="things">
<div class="thing">
{% for thing in things %} <!-- It's a Django project -->
<h2>{{ thing.title }}</h2>
<p>{{ thing.content }}</p>
<small>{{ thing.date }}</small>
{% endfor %}
</div>
</div>
Does it have something to do with styling in Django templates?