Is there a way to achieve this without relying on jQuery?
The sizes of the images will range from small to medium and large. Each product will have a size property.
I considered using float left, but that won't be effective as the larger image would push the two smaller ones down to the next line.
If I need to use jQuery, which plugin is recommended?
EDIT: The order of the items varies, meaning the sizes of the images may not always be in the same position. Float left or float right wouldn't work in that case.