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