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
you could use clear: left and apply it for each first child in row. For example if you have 4 items in row you can use:
clear: left
.my-row>:nth-child(3n+1) { clear:left; background-color: red; // just to see if the first item in row is matched }