Jump to content

Mobile Padding Masonry Gallery

Recommended Posts

  • Replies 3
  • Views 415
  • Created
  • Last Reply

Top Posters In This Topic

You can use this code to Website Tools > Custom CSS. You can adjust 10px to another value to increase/decrease space.

@media only screen and (max-width: 767px) {
    .gallery-masonry .gallery-masonry-wrapper {
        columns: 4;
        column-gap: 0px;
        height: auto!important;
        display: block!important;
        padding: 0px;
    }
    .gallery-masonry-item-wrapper {
        height: auto!important;
    }
    .gallery-masonry-item {
        position: relative!important;
        transform: none!important;
        width: 100%!important;
        display: block;
        padding: 10px!important;
        box-sizing: border-box;
    }

    .gallery-masonry .gallery-masonry-item img {
        height: 100%!important;
      	width: 100%!important;
    }
}

image.png.96a6d0f12af6ae894e1a0d2672255e63.png

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
  • 2 weeks later...

Thank you, worked great. I have one more issue with another part of the site, on the desktop and iPad view. I have a code injected that splits the navigation between the title and header links, but when in a smaller window it all compresses behind the title, is there a way to fix it so the links are always in its same position?

Jmphoto.online

Screenshot 2024-09-02 at 9.36.59 AM.png

Screenshot 2024-09-02 at 9.36.46 AM.png

Screenshot 2024-09-02 at 9.36.40 AM.png

Screenshot 2024-09-02 at 9.34.23 AM.png

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.