Jump to content

Grid gallery split columns into 2 - on a tablet / iPad

Recommended Posts

Posted

Site URL: http://thurstonhall.squarespace.com/accommodation

Hi all,

I've searched and searched existing posts to fix this but haven't been able to find anything.

On this page thurstonhall.squarespace.com/accommodation (password is 'brooklyn') I have a grid gallery in 4 columns. On a mobile (phone) it goes to 2 columns and I've very happy with that. But on an iPad it is in a single column of giant images which looks silly.

How can I get the iPad view to split to 2 columns, like the phone?

Thanks

- James

IMG_3772.JPG

  • Replies 1
  • Views 974
  • Created
  • Last Reply
Posted

I would like to help, please add this snippet via Settings->Design->Custom Css

@media only screen and (max-width: 768px) {
    section[data-section-id="5f9331652c49843721f75d93"] .gallery-grid-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media only screen and (min-width: 1024px) {
    section[data-section-id="5f9331652c49843721f75d93"] .gallery-grid-wrapper {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

image.png.302eaa295071136fb5876bfecedd969f.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.