Jump to content

Remove unwanted padding between images in mobile view

Recommended Posts

  • Replies 9
  • Views 840
  • Created
  • Last Reply
2 minutes ago, anderslonnfeldt said:

Business.

To remove, add this to Page Settings > Advanced > Header

<style>
  @media screen and (max-width:767px) {
.gallery-masonry-item {
    padding-bottom: 0 !important;
}
}
</style>

 

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
  • 4 weeks later...
1 hour ago, anderslonnfeldt said:

Hello,

 

I changed the gallery grid from "Masonry" to "Simple" to be able to set a aspect ratio for all the images.

Now I have the same problem as with the Masonry grid. There are padding between images in mobile view.

Anyone have a solution for this?

Here is a link to the page: https://www.anderslonnfeldt.com/

 

Anders

Add to Home > design > Custom CSS

@media screen and (max-width:767px) {
.gallery-grid-item {
    padding-bottom: 0 !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

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.