Jump to content

Adding spacing on left/right of grid

Recommended Posts

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

Hi,

I added a gallery grid to display my logos on my homepage - craigkleila.com, password = "password". However, I don't see an option to add space on either side of the gallery so it's taking up the whole width of the page. Does anyone know how I can add padding to either side of my gallery grid? 

I've tried using this code, which works, but it also impacts other galleries on the site.

.user-items-list {
   padding-left: 10vw;
    padding-right: 10vw;
}
 

Link to comment
  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Use this code

@media screen and (min-width:992px) {
.user-items-list-item-container[data-section-id="63165f17e666f56ecfc96479"] {
    padding-left: 10vw;
    padding-right: 10vw;
}
}

 

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 9/9/2022 at 4:17 AM, Craig456 said:

This did the trick for desktop, thanks. However, now on mobile, only one icon is displaying per row. How can I make it 3 per row?

Add this to Design > Custom CSS

/* Brands worked with mobile */
@media screen and (max-width:767px) {
.user-items-list-item-container[data-section-id="63165f17e666f56ecfc96479"] {
    grid-template-columns: repeat(3,1fr);
}
}

 

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 9/17/2022 at 4:14 AM, Craig456 said:

Unfortunately that didn't work. Any other ideas?

Can you add & keep the code in Custom CSS? I will check it again

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
10 hours ago, Craig456 said:

I've added it again! Can you take a look?

It shows fine to me. You try clearing browser cache & check again.

image.thumb.png.729ef10739d6f4628fb8ade246e416c6.png

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.