I have this at the moment:
I'm using this on a WordPress project, where I have to list articles by categories, nested in columns. I just wrote some css for the responsive layout, so as you decrease the browser width, there are less elements in a row.
.container {
margin: 20px auto;
width: 80%;
min-height: 100px;
display: flex;
flex-flow: row wrap;
}
.item {
margin: 10px;
flex: 1 1 calc(20% - 20px);
background-color: lightgreen;
}
@media screen and (max-width: 1200px) {
.item {
flex: 1 1 calc(25% - 20px)
}
}
@media screen and (max-width: 900px) {
.item {
flex: 1 1 calc(33% - 20px)
}
}
@media screen and (max-width: 750px) {
.item {
flex: 1 1 calc(50% - 20px)
}
}
@media screen and (max-width: 550px) {
.item {
flex: 1 1 calc(100% - 20px)
}
}