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
  • Views 1.3k
  • Created
  • Last Reply
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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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

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.