Jump to content

Make landscape photos same height as portrait in gallery

Recommended Posts

  • Replies 2
  • Views 1.4k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

On 10/4/2021 at 10:14 AM, dnalhop said:

Site URL: https://www.reidpohland.com/portfolio/lewishockey

On the page, I have two galleries which contain both landscape and portrait photos. I'd like the landscape ones to be the same height as the portrait ones to avoid having empty space above and below the landscape images. Any help is appreciated.

which part in gallery are you mentioning about? It would be fine if you can describe it more detail by taking a screenshot of your issue


BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!


Link to comment
  • 2 years later...


In case you still have this issue with the height of portrait pictures in a gallery with landscape pictures, here is the CSS code: 

 .gallery-strips-item img {
    max-height: 210px; 
    object-fit: contain !important;

-> Replace the 210 with whatever value you have as a row height or the value that does not crop the height of your landscape images. 

-> Replace the strips in the gallery item depending on which gallery you are using. 

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.