Jump to content

How do I remove padding above gallery

Go to solution Solved by Jia,

Recommended Posts

Site URL: https://www.kinnju.com/

Password: twiase

I'm trying to remove the padding above the gallery in order to get rid of the area marked with red.

I've tried the following code via Design > Custom CSS and nothing seems to change when I save it:

.gallery-grid { padding-top: 0 !important; }
.gallery-grid.gallery-grid--layout-grid { padding-top: 0px; padding-bottom: 0px; }
[data-section-id="section ID of the gallery"] .content-wrapper {padding-top: 0px; padding-bottom: 0px;}
[data-section-id="section ID of the gallery"] .content-wrapper {padding-top: 0px !important; padding-bottom: 0px !important;}

I'm not too sure if I'm even putting in the code correctly because nothing happens even after I save it.

Any help would be greatly appreciated

11jjilrilao81.jpg

Edited by bananabread
formatting
Link to comment
  • Solution
2 hours ago, bananabread said:

Site URL: https://www.kinnju.com/

Password: twiase

I'm trying to remove the padding above the gallery in order to get rid of the area marked with red.

I've tried the following code via Design > Custom CSS and nothing seems to change when I save it:

.gallery-grid { padding-top: 0 !important; }
.gallery-grid.gallery-grid--layout-grid { padding-top: 0px; padding-bottom: 0px; }
[data-section-id="section ID of the gallery"] .content-wrapper {padding-top: 0px; padding-bottom: 0px;}
[data-section-id="section ID of the gallery"] .content-wrapper {padding-top: 0px !important; padding-bottom: 0px !important;}

I'm not too sure if I'm even putting in the code correctly because nothing happens even after I save it.

Any help would be greatly appreciated

11jjilrilao81.jpg

Hi, try adding this to custom css and let me know how it goes 🙂 

.gallery-masonry[data-width="full"] {
  padding-top: 0px !important;
}

 

Please give this a 👍 if it helps

Link to comment
  • 2 months later...
On 3/19/2022 at 7:52 AM, Jia said:

Hi, try adding this to custom css and let me know how it goes 🙂 

.gallery-masonry[data-width="full"] {
  padding-top: 0px !important;
}

 


Hello! @Jia I'm trying to accomplish the same thing by removing the padding above my grid on the homepage but this coding did not work for me when I added to Custom CSS. Any idea how to resolve this?

Site URL: https://watermelon-tomato-em22.squarespace.com/

Thank you!
Robert

Link to comment
9 hours ago, Robert-N said:


Hello! @Jia I'm trying to accomplish the same thing by removing the padding above my grid on the homepage but this coding did not work for me when I added to Custom CSS. Any idea how to resolve this?

Site URL: https://watermelon-tomato-em22.squarespace.com/

Thank you!
Robert

Use this CSS

div#gridThumbs {
    padding-top: 0px;
}

 

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.