Christmas Sale

30% off HappyDivi plugins

Gallery, Form Pro and Liven, until December 31.

Grid, Masonry and Justified Layouts

Choose a layout and set its columns, gap, image size, aspect ratio and how images fit their cells.

Updated · HappyDivi Gallery 1.0.23

HappyDivi Gallery layouts are Grid, Masonry and Justified, and you can switch at any time.

Choose under Content → Gallery Layout. You can switch at any time without rebuilding the gallery.

LayoutHow it looksGood for
GridIdentical cells in straight rowsProducts, teams and anything that should line up
MasonryColumns of different heights, with no croppingBlogs and mixed portrait and landscape photos
JustifiedEqual-height rows that fill the full widthPhotography

Masonry#

Set Columns and Gap Between Images for each screen size. Each image keeps its own height and goes into the shortest column. The layout rearranges itself when the screen size changes or a filter is used.

Gallery Layout settings beside a Masonry blog post gallery of travel posts with titles under each image

A Masonry layout filled from blog posts.

Justified#

Set Target Row Height in pixels. Rows adjust slightly around it so each one fills the width exactly. Last Row Alignment decides what happens to a short final row: Left Align, Stretch to Fill Width, or Hide Incomplete Last Row.

Gallery Layout settings beside a Justified photography gallery with equal-height rows of uncropped photos

A Justified layout: equal rows and no cropped photos.

Grid#

SettingOptions
Aspect RatioNatural, Square (1:1), Landscape (4:3), Wide (16:9), Cinematic (21:9), Portrait (3:4), Tall Portrait (2:3), Vertical (9:16)
Image Display ModeFill & Crop, Full Image + Background, Full Image + Blur Background
Focal PointWhich part of the image stays in view when it is cropped
Blur IntensityHow strong the blur is in the blur background mode

Image Size#

Image Size sets which file loads in each cell. Large is recommended. Use Full Size only when a cell is really that big, because bigger files slow the page.