Skip to content

Gallery layout guide and CSS tool

Masonry Gallery Generator

Use native Grid: Masonry for a Squarespace 7.1 gallery section. This paid CSS generator is intended for classic Grid Gallery blocks. Check your gallery type before buying.

Free preview. Code export: $11.99 once for personal use.

Try the native masonry layout first

For a 7.1 gallery section, open Edit Section, then the Gallery tab. Under Gallery Type, select Grid: Masonry. Review its column and spacing controls, then inspect the layout on a phone. You do not need this tool for a basic native masonry section. Follow Squarespace's gallery section instructions.

Gallery section, block, or page?

Gallery sections are the usual option on 7.1 layout pages. Gallery blocks are different: 7.0 supports them in block content areas; 7.1 normally supports them in areas such as blog posts and individual events. Squarespace documents an exception for Circle partners, who can add Gallery blocks to other 7.1 content areas. Check where Gallery blocks are supported.

What this generator targets

Consider custom CSS when an existing Grid Gallery block needs column, gap, corner, or hover settings beyond its native controls. The export uses classic Grid Gallery block selectors. It does not target 7.1 Gallery sections or template-specific 7.0 Gallery pages. CSS columns arrange items down each column; this is not the same layout algorithm or ordering as native Grid: Masonry.

Unscoped CSS can affect every matching Grid Gallery block on your site. Before applying it, confirm the block's markup and prefix every selector with that block's ID. The example preview does not establish compatibility with your site, its lightbox, or other custom code. Keep useful captions available to phone and keyboard visitors, and inspect image order after any layout change.

Compare native gallery spacing controls or ask about your gallery before purchasing.

Customize

3
16px
4px

Hover Effect

Responsive Breakpoints

Live Preview

Desktop preview: 3 columns. This changes the sample column count, not your browser width.

Hover over blocks to preview the zoom effect. These sample tiles do not establish compatibility with your installed gallery. Choose Mobile columns or Tablet columns above to compare those settings.

Your next step

Like the result? Put it on your site.

Checking your tool access...

How to add this to Squarespace

  1. Save a copy of your existing CSS, then open the Custom CSS editor
  2. Confirm that the target is a classic Gallery Block in Grid layout. For a 7.1 Gallery section, use the native Grid: Masonry setting instead.
  3. Inspect the block markup before applying these selectors. Gallery pages and Gallery sections use different structures.
  4. Prefix every selector, including those inside media queries, with your existing gallery block's ID, for example #block-your-gallery-id to limit the change to that block. Replace the example with the real ID, then paste the scoped CSS.
  5. Inspect desktop and phone layouts, image order, captions, keyboard navigation, and any links or lightbox. Remove the added CSS to return to the block's native styling.

Need a hand with your site?

Get help installing, styling, or troubleshooting your changes.