Jump to content

Add Padding to Image Gallery

Recommended Posts

Posted

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

Posted
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.

Posted
15 hours ago, tuanphan said:

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

Yes, please! The coding you provided only applies to top.

Posted
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?

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.