Jump to content

Help decreasing bottom margin/padding for Gallery Grid on mobile?

Go to solution Solved by tuanphan,

Recommended Posts

Hi -

If anyone could help -- much appreciated. Password "mosaic"

The spacing looks fine within the Squarespace editor but when I open it on my phone (which is a small iphone 12 mini) there is a bunch of extra space below the Gallery Grid which I can't get rid of.

This is on the homepage but the issue repeats itself wherever I use the Gallery Grid.

I am attaching the difference in appearance in screenshots. The one with the extra space is the live view on my phone and the one without is how it looks in the editing and preview modes in Squarespace. 

I have tried this CSS which decreases/adds space in the Squarespace view but does not move it at all on my mobile/live view:

/* Reduce space under grid - mobile */
@media screen and (max-width:400px) {
.sqs-gallery-block-grid {
    margin-bottom: -250px !important;
}
}

 

Thank you for any assistance!

mobile_screenshot.jpg

SquarespaceEditorPreviewScreenshot.png

Link to comment
  • Replies 4
  • Views 399
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution
On 5/4/2024 at 1:01 AM, wilderbydesign said:

Hi Tuan -- it is: https://dolphin-parsnip-f4ma.squarespace.com/ (password: mosaic).

Thank you!

You can use this code to Website > Website Tools > Custom CSS

@media screen and (max-width:767px) {
.fe-block.fe-block-yui_3_17_2_1_1712001224434_7624 {
    grid-row-start: 26 !important;
}
.fe-block-yui_3_17_2_1_1712001224434_3068 {
    grid-row-start: 31 !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
  • 2 weeks later...

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.