Jump to content

Grid Gallery Mobile View

Recommended Posts

Site URL: https://agriculturalinstitute.squarespace.com

Hello, 

Does anyone know how to change the way the grid gallery is resized in mobile? I am hoping to have my 7 images appear on one line (7 columns essentially, even though they will be small) instead of 2 per row. 

I am using the Impact template within the Brine family. 

I tried this code to no avail:

 

<!-- stack gallery grid on mobile -->
 <style>
@media only screen and (max-width: 640px) {
  .sqs-gallery-design-autogrid-slide {
     width: calc(100/7)% !important;
     clear:right !important;
    }
  .sqs-gallery-block-grid {
      overflow: visible
    }
}
</style>

 

Thanks for you help!!

Link to comment
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

14 hours ago, megf said:

"aim"

Thank you!!

Add to Home > Design > Custom CSS

.sqs-gallery-block-grid.sqs-gallery-thumbnails-per-row-7 .sqs-gallery-design-grid-slide {
    width: 14.285714285714286% !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
9 hours ago, tuanphan said:

Add to Home > Design > Custom CSS


.sqs-gallery-block-grid.sqs-gallery-thumbnails-per-row-7 .sqs-gallery-design-grid-slide {
    width: 14.285714285714286% !important;
}

Thank you so much!! Works like a charm!

 

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.