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
  • Views 607
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.