Jump to content

Grid Gallery Mobile View

Recommended Posts

Posted

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

  • Replies 4
  • Views 1.4k
  • Created
  • Last Reply
Posted
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!

 

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.