Jump to content

Prevent Image Cropping in Gallery Section Simple Grid (7.1)

Recommended Posts

For my page with my reference customer logos (www.mustafaicil.com/tr/references), I was using the Gallery Block with the simple grid in 7.0 - all logos perfectly fit in similar size boxes. I moved my site to 7.1 and now with the Gallery Section, simple grid is keeping the original sizes of the logos and cropping them. There is no option for "scale to fit". Have any of you ran into the same issue? Is there a custom code that I can use?

Note: Currently I am using the masonry grid, which is not ideal for my design needs. And even that is cropping sides of some of the logos.

Link to comment
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Try adding this code to Website > Website Tools (under Not Linked) > Custom CSS

/* Masonry images */
.gallery-masonry .gallery-masonry-item[data-loaded] img {
    object-fit: contain !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 2 weeks later...
On 11/12/2023 at 11:35 AM, tuanphan said:

Try adding this code to Website > Website Tools (under Not Linked) > Custom CSS

/* Masonry images */
.gallery-masonry .gallery-masonry-item[data-loaded] img {
    object-fit: contain !important;
}

 

Unfortunately it did not work 😞

Link to comment

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.