Jump to content

reduce padding top and bottom of gallery

Go to solution Solved by SquareRefresh,

Recommended Posts

  • Solution

Hey @KathrynW try to reduce the site margin.
chrome_nrpW3oogOY.png.3924b7899add5c41fc01b4d14a8e9632.png

or try to use next code:

.gallery-grid[data-width="inset"] {
  padding-top: 1.5vw;
  padding-bottom: 1.5vw;
}

 

Edited by SquareRefresh

SquareRefresh, premium plugins & templates that have an elevated feel.

Plugins: Have your site stand out. 
Templates: Our templates are designed with versatility in mind.
Get Freebies: Sometimes things in life are free. Browser our hand selected free plugins.

Link to comment
  • 10 months later...

hi @SquareRefresh. this code isn't working for me for some reason. i am looking to reduce top/bottom padding on gallery grids. these grids will exist site-wide for me (i plan to use this format on several pages). here is a link to an example page that illustrates the padding issue. please let me know if you have any questions - and really appreciate your help!!

https://lostlanguag.es/ongoing

jonathan

Link to comment
On 8/30/2022 at 2:22 AM, jonathanharris said:

 this code isn't working for me for some reason. i am looking to reduce top/bottom padding on gallery grids. these grids will exist site-wide for me (i plan to use this format on several pages). here is a link to an example page that illustrates the padding issue. please let me know if you have any questions - and really appreciate your help!!

https://lostlanguag.es/ongoing

jonathan

You mean this red padding?

image.thumb.png.2cad78b6c235239daada85c40f2160ea.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
On 8/31/2022 at 6:25 PM, jonathanharris said:

thank you so much @tuanphan. no, that is spacing i added intentionally. the padding i am talking about is here and elsewhere on that page, which cannot be reduced. (note that half of the top padding is composed of padding from the larger picture above.) 

image.thumb.png.98253cb140092ed82b04a3a14b57f864.png

 

I think it is padding between blocks. All blocks has a default 17px top and 17px bottom padding.

You can add this to Design > Custom CSS. It will remove Gallery top/bottom padding

/* gallery padding */
.gallery-block {
    padding-top: 0px;
    padding-bottom: 0px;
}

 

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
21 hours ago, jonathanharris said:

wonderful @tuanphan, this beautifully did the trick on the top!! but the bottom padding still seems a little funny. any thoughts? if this can't be fixed, what you have resolved is workable for me and i'm extremely grateful for your continued help.image.thumb.png.4de254e138bd77b7dcd335b55e04c6c2.png

Screen Shot 2022-09-03 at 7.41.16 AM.png

Try this new code

/* gallery padding */
.gallery-block {
    padding-top: 0px;
    padding-bottom: 0px !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

@tuanphan 

still a gap, i'm afraid. i appreciate your efforts!!

image.thumb.png.5651fda767653bd537cf5157ab5593a9.png

 

i suspect it has something to do with this command:

image.thumb.png.92293982fb227e496cb0cb6182e4e5cc.png

 

It does look like 20px of padding is going both between and beneath the grid. Your code is overruling the top padding, but not the bottom unfortunately. Or, alternatively, it is the generic 17px of padding that you mentioned above comes with every block.

What do you suggest?

Thank you once again for your efforts.

Jonathan

 

Link to comment
14 hours ago, jonathanharris said:

@tuanphan 

still a gap, i'm afraid. i appreciate your efforts!!

image.thumb.png.5651fda767653bd537cf5157ab5593a9.png

 

i suspect it has something to do with this command:

image.thumb.png.92293982fb227e496cb0cb6182e4e5cc.png

 

It does look like 20px of padding is going both between and beneath the grid. Your code is overruling the top padding, but not the bottom unfortunately. Or, alternatively, it is the generic 17px of padding that you mentioned above comes with every block.

What do you suggest?

Thank you once again for your efforts.

Jonathan

 

ah, it is 20px bottom margin of gallery block

image.thumb.png.0d066f94553ebda01763f86113c70f5f.png

Use this code to remove margin

div.gallery-block .margin-wrapper {
    margin-bottom: 0px !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...

Hi @tuanphanI have been following this thread as I am facing a similar problem to the initial poster. 
I want to reduce the padding between my single column and double column gallery grids, as they are currently set to a default that looks to be around 57px at full width (1440). Ideally I want to reduce this padding to 20px top & bottom. 

I managed to do it by editing each individual div within chrome's inspect tool (https://tppr.me/oRbaT) but can't seem to add the correct custom CSS to properly reduce the padding in Squarespace. I have tried the various lines of code suggested in this thread and none of them have worked so far.

Any suggestions you have would be much appreciated!!

Site link: https://www.laurenchalk.com/info-design
Password: apsleydrive

 

Link to comment
On 12/10/2022 at 4:57 AM, LauChalk said:

Hi @tuanphanI have been following this thread as I am facing a similar problem to the initial poster. 
I want to reduce the padding between my single column and double column gallery grids, as they are currently set to a default that looks to be around 57px at full width (1440). Ideally I want to reduce this padding to 20px top & bottom. 

I managed to do it by editing each individual div within chrome's inspect tool (https://tppr.me/oRbaT) but can't seem to add the correct custom CSS to properly reduce the padding in Squarespace. I have tried the various lines of code suggested in this thread and none of them have worked so far.

Any suggestions you have would be much appreciated!!

Site link: https://www.laurenchalk.com/info-design
Password: apsleydrive

 

Add some CSS like this (Design > Custom CSS)

.gallery-grid.gallery-grid--layout-grid {
    padding-top: 1px;
    padding-bottom: 1px;
}

 

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

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.