Jump to content

Remove padding from gallery in 7.1

Go to solution Solved by tuanphan,

Recommended Posts

Hi, I have two gallery blocks in a row with too much padding in between that I'd like to reduce this so it matches the gap between all the other images in each gallery.

The first block is a gallery set to grid:simple and the following is a gallery set to grid:strips. Both these gallery blocks seem to have a set-top and bottom padding that can't be removed. I've tried some custom css from these forums and also changing the site padding with no luck. Any other code I should try to get rid of the top/bottom padding on one of these galleries completely so we are left with a single spaced gap instead?

Screenshot 2024-01-06 at 12.55.20 pm.png

Screenshot 2024-01-06 at 12.55.33 pm.png

Link to comment
3 hours ago, tanya7824 said:

Hi, I have two gallery blocks in a row with too much padding in between that I'd like to reduce this so it matches the gap between all the other images in each gallery.

The first block is a gallery set to grid:simple and the following is a gallery set to grid:strips. Both these gallery blocks seem to have a set-top and bottom padding that can't be removed. I've tried some custom css from these forums and also changing the site padding with no luck. Any other code I should try to get rid of the top/bottom padding on one of these galleries completely so we are left with a single spaced gap instead?

Screenshot 2024-01-06 at 12.55.20 pm.png

Screenshot 2024-01-06 at 12.55.33 pm.png

Can you share your website URL?

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
  • Solution
On 1/11/2024 at 5:17 AM, tanya7824 said:

Apologies I've been doing lots of updates to the site since this thread started. This should be the new link: https://www.tanyaloucas.com/portfolio/foyer-foundation

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

/* Gallery space */
.gallery-strips.gallery-strips--layout-strips {
    padding-top: 0px !important;
}
.gallery-grid.gallery-grid--layout-grid {
    padding-bottom: 10px !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
  • 3 months later...

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.