Jump to content

Make gallery block Grid single column on mobile

Recommended Posts

Posted (edited)

Hi,

I have 2 pages with a grid gallery block that contains multiple videos with thumbnails. It is set to be 2 columns wide on desktop, but I would like them to be single column on mobile. Is it possible to do this with CSS?

Page is here: https://simon-lamarre.com/projets/commercial It's a blog post with a bunch of stuff hidden. I really wanted that video lightbox.

Thanks!

Edited by SimonLL
Posted
On 2/3/2022 at 11:26 AM, SimonLL said:

Hi,

I have 2 pages with a grid gallery block that contains multiple videos with thumbnails. It is set to be 2 columns wide on desktop, but I would like them to be single column on mobile. Is it possible to do this with CSS?

Page is here: https://simon-lamarre.com/projets/commercial It's a blog post with a bunch of stuff hidden. I really wanted that video lightbox.

Thanks!

Kindly try adding to Home > Design > Custom Css

@media only screen and (max-width: 767px) {
  .sqs-layout .sqs-gallery-design-grid-slide {
    width: 100% !important;
  }

  .sqs-layout .sqs-gallery-design-grid-slide img{
    width: 100% !important;
    height: 100% !important;
  }

}

Let me know how it works on your site

Support me by pressing 👍 if this useful for you

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> No-code customisations for Squarespace

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.