I\'m trying to make a grid of thumbnails, where each thumbnail has an image and a label. It works fine if all the labels have the same length, because then all the thumbnail
If you don't know how many columns you have, you can do:
.row.fix { display: flex; flex-wrap: wrap; width:100%; /*not always necessary*/ }
Working fiddle: https://jsfiddle.net/wqdm1jjt/
Example:
Author: Juan Miguel