Jump to content

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

Recommended Posts

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

Link to comment
  • Replies 1
  • Views 910
  • Created
  • Last Reply

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 (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

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.