Jump to content

Remove unwanted padding between images in mobile view

Recommended Posts

Try adding to Home > Design > Custom CSS

@media screen and (max-width:767px) {
.homepage .gallery-masonry-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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
6 minutes ago, anderslonnfeldt said:

It worked! You are a genious 🙂

 

How can I adapt the code for this page as well? https://www.anderslonnfeldt.com/photography

which plan do you use? Personal or BUsiness

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.