Jump to content

Index gallery image ratio issue

Recommended Posts

Posted (edited)

Hi I am using the Flatiron template and on the Index gallery (currently my homepage) the horizontal 2:1 images are scaling down by 50% but the square and vertical images are remaining at 100% (in proportion to their original sizes) Is there a CSS code that overrides this and allows the horizontal images to remain at 100% i.e run across two columns? 

Any help would be much appreciated.

url rsdm.com.au
 

 

Edited by RSDM
Added url
Link to comment

The url is https://www.rsdm.com.au

I have tried adding this code CSS code via Website Tools, Custom CSS  but it does nothing.

 

/* Ensure images in the homepage index gallery maintain equal proportions */
.index-gallery img {
    object-fit: cover;
    width: 100%;
    height: auto;
}

/* Optional: set a max height to ensure uniformity across images of different ratios */
.index-gallery img {
    max-height: 300px; /* adjust this value as needed */
}

/* Additional styling to ensure consistent spacing and layout */
.index-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* center the images in the gallery */
}

.index-gallery-item {
    margin: 10px; /* adjust spacing between images as needed */
    overflow: hidden; /* hide any overflow */
}
 

Link to comment

Sorry for misunderstanding, but as I checked the images, the 2:1 ones still functioning for me

image.thumb.png.ca1d6dd60a131cf8896c6723694a0fcb.png

image.thumb.png.dcb4aa9a82ae0f4f0a9c91182e3ffdca.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - Lightbox captions only mode)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace
🚀 Learn how to rank new pages on Google in 48 hours!

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

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.