Jump to content

Gallery Block max width on mobile

Recommended Posts

  • Replies 2
  • Views 246
  • Created
  • Last Reply

Top Posters In This Topic

You could use a media query and overwrite some width properties:

@media (max-width: 767px) {
	.gallery-masonry {
       padding: 0!important;
       img {
          width: 100%!important;
       }
       .gallery-masonry-item {
          width: 100%!important
       }
    } 
}

 

Jozsef Kerekes - Front-end developer and Squarespace enthusiast
My Blog: https://ui-workarounds.com
If you like my answer, please give me an upvote/like. Highly appreciated.

 

 

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.