Justified

Items are arranged in rows of equal height that fill the full width, each image at its own aspect ratio (the Flickr layout).

SettingValuesDefaultNotes
Row Height20 to 1000 px200Target height. Rows are computed to be as close to it as possible
Row Height Tolerance0 to 1, step 0.050.25How far a row may deviate from the target: 0.25 allows 150 to 250 px for a 200 px target. Higher values fit images with less cropping; 0 forces exact rows
Max Rows Count0 to 500Number of rows to show; 0 shows all. Useful for a teaser gallery
Last Row AlignLeft, Center, Right, HideLeftWhat to do with an incomplete last row. Hide leaves it out
Gap, Vertical Gap0 to 200 px15, empty

There is no column setting. On small screens rows keep the target height, so fewer images fit in each row.

Justified is built on the flickr-justified-gallery library.

Was this page helpful?