Jump to content

Increase gallery block padding on mobile

Go to solution Solved by paul2009,

Recommended Posts

  • 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  ⬇️

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

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

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

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

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.