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
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

Edited by bangank36

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, 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

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.