Jump to content

[Share] Adding Padding on left/right of Gallery Grid

Recommended Posts

You can use this CSS code to Website Tools > Custom CSS to adjust padding on left/right of Gallery Grid.

If you can't make it work, you can send link to page where you use Gallery Grid, I will check again.

#1. All Gallery Grids

div.gallery-grid.gallery-grid--layout-grid {
  padding-left: 8vw !important;
  padding-right: 8vw !important;
}

image.png.e9f8ccc9f86345381fb42e54293ebfa9.png

#2. Gallery Grids on Desktop Only

@media screen and (min-width:768px) {
  div.gallery-grid.gallery-grid--layout-grid {
    padding-left: 8vw !important;
    padding-right: 8vw !important;
  }
}

image.png.35ae7baabff15553c736f9235dea646f.png

#3. Gallery Grids on Mobile Only

@media screen and (max-width:767px) {
  div.gallery-grid.gallery-grid--layout-grid {
    padding-left: 8vw !important;
    padding-right: 8vw !important;
  }
}

#4. Gallery Grids on One Page

First, you need to find the Page ID. 

In my example, we have: #collection-66067426a799765085da1057

image.png.ce915fd0cb02a5ac71819d1bc58367e9.png

Next, use this CSS code

#collection-66067426a799765085da1057 div.gallery-grid.gallery-grid--layout-grid {
  padding-left: 8vw !important;
  padding-right: 8vw !important;
}

#5. Specific Gallery Grid

First, you need to find Gallery Grid Section ID. Use #4 Tool.

Then use CSS code like this

section[data-section-id="660fb69c5ad8264c5dbae2e7"] div.gallery-grid.gallery-grid--layout-grid {
    padding-left: 8vw !important;
    padding-right: 8vw !important;
}

 

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
  • Replies 0
  • Views 196
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.