Jump to content

Making grid strips into even columns/rows on mobile

Recommended Posts

I have 12 images, and on the desktop version of my website I was able to fit all 12 into one row in my grid strip gallery. On mobile, I would like this to turn into 2 rows of 6 images each, but the default makes the columns uneven 😞 instead i get a row of 8 images and then a second row of 4 images. the height of the second row is also larger and looks really bad.

The first photo image.thumb.png.9b39578442db8177eb6f8e171b4f30bd.png

and this second photo.

image.png.c4943d5b2738f8dcce139f823f5d8ca8.png

how can i make it so that there are 2 rows of the same amount of photos? 

link to the page incase it helps! https://www.maariyahmustafa.com/portfolio/project-one-ephnc-gyp4e

 

 

Link to comment
  • Replies 1
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

You can add this code to Website Tools (under Not Linked) > Custom CSS

@media (max-width: 576px) {
[data-section-id="65986ac9470ee664a573a80a"] {
    .gallery-strips .gallery-strips-wrapper {
        columns: 12;
        column-gap: 0;
        height: auto!important;
        display: block!important;
        padding: 0 5px;
    }
    .gallery-strips-item-wrapper {
        height: auto!important;
    }
    .gallery-strips-item {
        position: relative!important;
        transform: none!important;
        width: 100%!important;
        display: block;
        padding: 5px!important;
        box-sizing: border-box;
    }

    .gallery-strips .gallery-strips-item img {
        height: 100%!important;
      	width: 100%!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

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.