Jump to content

How to Set Max Image Width for Images in Masonry Gallery

Go to solution Solved by Zwaeback,

Recommended Posts

  • Solution
Posted

Hi,

I think I've mostly solved the problem with the following code, which limits the size of the 4 column gallery width.

[data-section-id="647a5dbae5e1f60246ddc224"] .gallery-masonry {
      max-width: 2955px !important;
}

Now, I just need to find the code to justify the gallery to the center, rather than the left side.

Thanks,

Phil

Posted

Hi,

It looks like I found a way to center the gallery with "margin: 0 auto;"

[data-section-id="647a5dbae5e1f60246ddc224"] .gallery-masonry {
      max-width: 2955px !important;
      margin: 0 auto;
}

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.