Grid, Masonry and Justified Layouts
Choose a layout and set its columns, gap, image size, aspect ratio and how images fit their cells.
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.
| Layout | How it looks | Good for |
|---|---|---|
| Grid | Identical cells in straight rows | Products, teams and anything that should line up |
| Masonry | Columns of different heights, with no cropping | Blogs and mixed portrait and landscape photos |
| Justified | Equal-height rows that fill the full width | Photography |
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.
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.
A Justified layout: equal rows and no cropped photos.
Grid#
| Setting | Options |
|---|---|
| Aspect Ratio | Natural, Square (1:1), Landscape (4:3), Wide (16:9), Cinematic (21:9), Portrait (3:4), Tall Portrait (2:3), Vertical (9:16) |
| Image Display Mode | Fill & Crop, Full Image + Background, Full Image + Blur Background |
| Focal Point | Which part of the image stays in view when it is cropped |
| Blur Intensity | How 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.
Step-by-step guides: masonry gallery and photography and real estate galleries.

