Jump to content

Remove extra padding on gallery section MOBILE ONLY!

Go to solution Solved by Lesum,

Recommended Posts

  • Solution

@LindsEli Here's a code snippet to remove extra padding on mobile. Add the code under  Website > Utilities > Website Tools > Custom CSS.

@media only screen and (max-width: 767px) {
    .gallery-slideshow[data-show-captions="true"][data-thumbnails="false"] {
      margin-bottom: 70px !important;
      height: 60vw !important;
    }
	.gallery-caption {
		margin-top: 0 !important;
	}
}

Let me know how it goes. Thanks!

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

Link to comment
On 8/17/2023 at 5:56 PM, Lesum said:

@LindsEli Here's a code snippet to remove extra padding on mobile. Add the code under  Website > Utilities > Website Tools > Custom CSS.

@media only screen and (max-width: 767px) {
    .gallery-slideshow[data-show-captions="true"][data-thumbnails="false"] {
      margin-bottom: 70px !important;
      height: 60vw !important;
    }
	.gallery-caption {
		margin-top: 0 !important;
	}
}

Let me know how it goes. Thanks!

thank you it worked!

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.