Jump to content

Make Strips Gallery appear as 2 columns on mobile

Recommended Posts

Site URL: https://marlin-plantain-z2gr.squarespace.com/

Hi - I have a page with lots of Strip image galleries, which I would like to display as 2 columns on mobile. I have used a code that does this, however when viewed on a mobile there are lots of awkward gaps between images where they are different dimensions. Is it possible to fix this, or to set the galleries so that they display as strips on desktop and as two column Masonry gallery on mobile?

This is the page:

https://marlin-plantain-z2gr.squarespace.com/portfolio/work

pw: 123

Some screenshots of how the gaps appear on mobile:

Screenshot 2022-06-19 at 14.19.33.png

Screenshot 2022-06-19 at 14.19.22.png

Screenshot 2022-06-19 at 14.19.08.png

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

Top Posters In This Topic

Top Posters In This Topic

Posted Images

In the code you used to make 2 items/row on mobile, edit this code

.gallery-strips-wrapper.gallery-strips-list--ready {
        height:auto !important;
        display: grid;
        grid-template-columns: repeat(2,1fr);
        grid-gap: 10px 10px
    }

to this

 .gallery-strips-wrapper.gallery-strips-list--ready {
       columns: 2;
        column-gap: 0;
        height: auto!important;
        display: block!important;
        padding: 0;
    }

 

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

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.