Struggling to put together a straightforward image gallery that can accommodate images of different sizes, I stumbled upon masonry in my quest for a plugin that could help with that.
After attempting to create a prototype of this idea using a masonry empty box layout as a reference, I'm stuck on how to actually place the images in these boxes.
http://jsfiddle.net/zigzag/kz2b79s3/
Here is an example of how I structured one tile:
<div class="item"> <img src="https://www.mulierchile.com/random-image/random-image-001.jpg"> </div>
As evident in the fiddle, the image is overflowing instead of fitting neatly within the box. I must have overlooked something simple here.