Jump to content

Limit gallery-reel-item height to 100px or less

Recommended Posts

I have a series of logos that I am displaying in a gallery section on my website, and the image files all have a height of 100px. For some reason the squarespace gallery is blowing my images up past their screen resolution. I am trying to set the max-height property of .gallery-reel-item to 100px, however this only results in my images being cropped at larger screen sizes. I would like the images to display proportionally, with their max height being 100px.

Here is my code so far:

[data-section-id="643ee72748c4b66c4c9dfe58"] .gallery-reel-item {
    max-height: 100px !important;
}

Screenshot 2023-05-19 115345.png

Link to comment
  • Replies 7
  • Views 411
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...
  • 2 weeks later...
On 6/23/2023 at 2:42 AM, Kirkpatrick said:

Hey, thanks. Same result. Crops images at 100px height. I'm wondering if it has to do with the flex nature of  <div class="gallery-reel-wrapper">? Not sure.

I see image looks fine here. Can you check it again?

image.thumb.png.35e8beb1dd1f2c92e2eaa7263de7ee8b.png

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.