Jump to content

adding padding/margin to gallery block on mobile

Recommended Posts

Site URL: https://www.maddenillustration.co.uk/monstermashup

I have 3 separate gallery blocks stacked on top of each other on my site - they display correctly on Desktop and tablet view (all 3 blocks visible without needing to scroll) but on mobile the bottom block is obscured.

Is there a way to add a margin or padding to the blocks that would be consistent across all viewing modes? I'm currently using spacers ...

Also, is it possible to move the slideshow nav arrows outside of the gallery block so they do not overlap the image?

Thanks very much 

1.png

burp 2021-10-29 at 12.50.33.png

burp 2021-10-29 at 12.50.43.png

Link to comment
  • Replies 2
  • Views 901
  • Created
  • Last Reply
2 hours ago, thatmadden said:

Site URL: https://www.maddenillustration.co.uk/monstermashup

I have 3 separate gallery blocks stacked on top of each other on my site - they display correctly on Desktop and tablet view (all 3 blocks visible without needing to scroll) but on mobile the bottom block is obscured.

Is there a way to add a margin or padding to the blocks that would be consistent across all viewing modes? I'm currently using spacers ...

Also, is it possible to move the slideshow nav arrows outside of the gallery block so they do not overlap the image?

Thanks very much 

1.png

burp 2021-10-29 at 12.50.33.png

burp 2021-10-29 at 12.50.43.png

You can try adding to Home > Design > Custom Css

/*arrow*/
.sqs-gallery-controls .previous {
  left: -60px;
}

.sqs-gallery-controls .next {
  right: -60px;
}

/*block*/
@media only screen and (max-width: 767px) {
  #container-content .gallery-block.sqs-block-gallery {
    margin-top: -1px;
  }
}

Let me know how it works on your site

Support me by pressing 👍 if this useful for you

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - Lightbox captions only mode)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace
🚀 Learn how to rank new pages on Google in 48 hours!

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

Link to comment
1 hour ago, bangank36 said:

You can try adding to Home > Design > Custom Css

/*arrow*/
.sqs-gallery-controls .previous {
  left: -60px;
}

.sqs-gallery-controls .next {
  right: -60px;
}

/*block*/
@media only screen and (max-width: 767px) {
  #container-content .gallery-block.sqs-block-gallery {
    margin-top: -1px;
  }
}

Let me know how it works on your site

Support me by pressing 👍 if this useful for you

Thanks very much - The arrows look great.

The CSS for the gallery block didn't work for me but I have found another solution that did:

@mobile: ~"only screen and (max-width: 640px)";

.sqs-block-gallery {
  width: 60%;
  margin-right: auto;
  margin-left: auto;
 } 

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.