dnalhop Posted October 4, 2021 Share Posted October 4, 2021 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. Link to comment
Beyondspace Posted October 7, 2021 Share Posted October 7, 2021 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, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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
TP2 Posted December 2, 2023 Share Posted December 2, 2023 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment