Jump to content

Add Padding to Image Gallery

Recommended Posts

Here's a Simple Gallery set to "Full" on my homepage. I also added CSS for a background image (behind gallery). However, you'll notice the top/bottom don't have padding and immediately transition to the next section. This bugs me because I want to see the background in these areas.

 

Is there CSS to add padding to the top/bottom of this Simple Image Gallery set to "Full" ?

 

Website URL: www.snydertv.com

Gallery_Example.png

Gallery_Example_2.png

Link to comment
3 hours ago, tuanphan said:

Add this CSS

body.homepage article section:first-child {
    top: 10px !important;
}

 

Thank you! How do I add space to the bottom? This is only working for top.

Link to comment
On 6/20/2023 at 11:03 AM, msnyder said:

Thank you! How do I add space to the bottom? This is only working for top.

I see you removed background. Do you still need help?

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
On 6/20/2023 at 11:03 AM, msnyder said:

Thank you! How do I add space to the bottom? This is only working for top.

You can try this

body.homepage article section:first-child {
    bottom: 10px !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
20 hours ago, tuanphan said:

You can try this

body.homepage article section:first-child {
    bottom: 10px !important;
}

 

This oddly doesn't work for the bottom. It adds padding, but it's white and doesn't match the background.

 

Also, the top's padding doesn't resize itself when I change the size of the browser window. It remains it's designated "px" size and looks disproportionate when everything else sizes up/down. Any way to change this?

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.