Image Masonry
View a collection of images in a compact grid: %%masonry.
This works in the Haddock Template.

Credits: https://css-tricks.com/seamless-responsive-photo-grid/

Masonry#

The %%masonry image gallery is a responsive image grid which is more compact compared to Image Gallery. All images get resized to the same width but keep their aspect ratio. They are ordered vertically in columns, from top to bottom, then from left to right. You can display the image collection either with or without a white frame. (gutter)
The number of images that are shown is automatically adjusted to the available screen width.

Free high resolution photos from Unplash.

With gutter#

%%masonry  <links to images> /%

No-Gutter#

%%masonry.nogutter  <links to images> /%

With background#

%%masonry  
  [{Image src='background-image' class='bg'}]
  <links to other images>
/%

/* Inspired by: https://css-tricks.com/seamless-responsive-photo-grid/ */ .masonry:not(.has-background), .masonry.has-background .bg-overlay { line-height: 0; /* Prevent vertical gaps */ -moz-column-count: 3; -moz-column-gap: 1em; column-count: 3; column-gap: 1em; } .masonry[class*=bg-]:not(.columns), .masonry.has-background .bg-overlay { padding:1em; } .masonry img.inline, .masonry .imageplugin img { width: 100%; } .masonry img.inline, .masonry .imageplugin { margin:0 0 1em;} .masonry.nogutter:not(.has-background), .masonry.nogutter.has-background .bg-overlay { -moz-column-gap:0;column-gap:0; padding:0; } .masonry.nogutter img.inline, .masonry.nogutter .imageplugin { margin:0; }

/* landscape smartphone */ @media (max-width: 480px){ .masonry { -moz-column-count:1;column-count:1; } } /* tablet */ @media (min-width:481px) and (max-width:768px){ .masonry:not(.has-background), .masonry.has-background .bg-overlay { -moz-column-count:2;column-count:2; } } /* desktops only */ @media (min-width:769px) and (max-width:980px){ .masonry:not(.has-background), .masonry.has-background .bg-overlay { -moz-column-count:3;column-count:3; } } /* large desktops */ @media (min-width:981px){ .masonry:not(.has-background), .masonry.has-background .bg-overlay { -moz-column-count:4;column-count:4; } }


See Category.Add CSS Style, Image Styles, Image Gallery, Image Quilt