Jump to content

Increase gallery block padding on mobile

Go to solution Solved by paul2009,

Recommended Posts

Hello people of Squarespace!

The first pic shows how the gallery looks on desktop, which is great. The second pic is on mobile. I'm trying to add vertical padding between the rows of items on mobile so you can easily tell which words go with which icons. Anybody got some code for that? Thank you!

https://www.j2tampa.com/

2023-02-08_11-51-03.jpg

2023-02-08_11-51-04.jpg

Edited by juliaprather
clarity
Link to comment
  • Solution
19 hours ago, juliaprather said:

I'm trying to add vertical padding between the rows of items on mobile

This is specific to this site (due to the block ID). It will add the margin to both desktop and mobile. If you don't want the extra margin on desktop you can wrap it in a media query.

#block-yui_3_17_2_1_1669326727826_11330 .sqs-gallery-block-grid .sqs-gallery-design-grid-slide .margin-wrapper {
  margin-bottom: 34px;
}

 

Did this help? Please give feedback by clicking an icon below  ⬇️

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.
Catch up on all the release notes and announcements 2023 [for Circle members only] (there's a public version here)

Buy me a coffee

Link to comment
4 hours ago, paul2009 said:

This is specific to this site (due to the block ID). It will add the margin to both desktop and mobile. If you don't want the extra margin on desktop you can wrap it in a media query.

#block-yui_3_17_2_1_1669326727826_11330 .sqs-gallery-block-grid .sqs-gallery-design-grid-slide .margin-wrapper {
  margin-bottom: 34px;
}

 

Did this help? Please give feedback by clicking an icon below  ⬇️

 

I am looking for a similar code but instead of the bottom of the whole grid, I just want to increase the padding between the gallery grid and the image title. Is there a code for that?

Link to comment
On 2/9/2023 at 11:57 PM, TLCDesign said:

 

I am looking for a similar code but instead of the bottom of the whole grid, I just want to increase the padding between the gallery grid and the image title. Is there a code for that?

Can you share link to your site? Above site, image title is an image, so we can't check the code

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
36 minutes ago, tuanphan said:

Can you share link to your site? Above site, image title is an image, so we can't check the code

 

thelonecrowd.com/shop

password: portfolio

 

The problem is the space between gallery item and the title

 

Screenshot 2023-02-11 at 12.30.18.png

Link to comment
On 2/11/2023 at 7:31 PM, Guest said:

 

thelonecrowd.com/shop

password: portfolio

 

The problem is the space between gallery item and the title

 

Screenshot 2023-02-11 at 12.30.18.png

Add to Design > Custom CSS

#block-yui_3_17_2_1_1675344067019_18009 .sqs-gallery-block-grid .sqs-gallery-design-grid-slide .margin-wrapper {
    margin-bottom: 20px !important;
}

 

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.