Jump to content

Banner Slideshow Mobile Image Padding

Go to solution Solved by Ziggy,

Recommended Posts

Posted

I am looking to add padding around these Banner Slideshow slides on mobile with CSS , and I can't seem to figure it out!  Attached below I provided images of how it look.

Mobile

s.Screenshot2024-05-01at11_47_25AM.thumb.png.83173451dee31e516133c59a7f054ec5.png

 

 

Desktop

 

Screenshot2024-05-01at11_49_53AM.thumb.png.4f6a3aca418313be0ce8be4477c871cf.png

Posted

Can you share your website URL?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

  • Solution
Posted

Try this in Custom CSS:

@media only screen and (max-width:767px) {
  .user-items-list-banner-slideshow .slide {
    margin: 0 8px;
  }
}

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted
3 minutes ago, Ziggy said:

Try this in Custom CSS:

@media only screen and (max-width:767px) {
  .user-items-list-banner-slideshow .slide {
    margin: 0 8px;
  }
}

Thank you for your response! The margin shows up in the editing window but not on an actual mobile device. This was the issue I was having.

 

While Editing

Screenshot2024-05-01at12_45_08PM.thumb.png.5eb6c8e5c33e0aee6bd9730f10b02ae3.png

 

On Device

 

IMG_60A793194F9B-1.thumb.jpeg.f2486605394048a776cbc794eef51c32.jpeg

Posted

The CSS doesn't appear to have been saved as I can't see it in the code on your website, did you remove it?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted (edited)
3 hours ago, Ziggy said:

The CSS doesn't appear to have been saved as I can't see it in the code on your website, did you remove it?

I added it back. Let me know what you see.

Edited by Knoxx
Posted

Hmm, not sure why that wasn't excluding the other elements, try one of these:

@media only screen and (max-width:767px) {
  .user-items-list-banner-slideshow .slides {
    width: 98%;
  }
}

Or this:

@media only screen and (max-width:767px) {
  .user-items-list-banner-slideshow .slide {
    margin: 0 24px;
  }
}

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted
5 minutes ago, Ziggy said:

Hmm, not sure why that wasn't excluding the other elements, try one of these:

@media only screen and (max-width:767px) {
  .user-items-list-banner-slideshow .slides {
    width: 98%;
  }
}

Or this:

@media only screen and (max-width:767px) {
  .user-items-list-banner-slideshow .slide {
    margin: 0 24px;
  }
}

Yeah, it's the same result. When I include IMG it created the margin but the images are clipped.

Posted

Do you have any other style code that might be overriding these tweaks?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted
43 minutes ago, Ziggy said:

Do you have any other style code that might be overriding these tweaks?

Thank you! That seemed to work. I subtracted all code and implemented what you suggested.

While Editing and Mobile

Screenshot2024-05-02at7_58_14AM.thumb.png.ef138ba0c51c1be88c9468e1736c3e02.png

 

Thank you for your assistance!

 

Posted
1 hour ago, Ziggy said:

Do you have any other style code that might be overriding these tweaks?

One last thing, do you happen to know the code to be able to change the height for Banner Slideshow for mobile?

Posted

Can you mark my post as the solution and give it a like?

Try this CSS:

@media screen and (max-width:767px) {
  .user-items-list-item-container[data-section-id="663149d7ee4b47248ba89534"] ul {
    min-height: unset !important;
  }
}

 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted
2 minutes ago, Knoxx said:

Thank you!

Pleased to help!

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

  • 3 months later...
Posted

@Ziggy — Hi! I'm having the same problem with my mobile banner slideshow & have tried your custom CSS above. It seems to work at first, then as soon as I refresh it goes back to no gap between the slides: 

site: octagon-horse-l653.squarespace.comScreenshot2024-08-03at4_11_26PM.thumb.png.89d62951918d43d967f472369c0cda72.png
pswd: huddle

Posted

Hello! I'm having trouble getting my banner slideshow section to display adjacent slides on mobile with a small gap between slides. I added a solution from this post to my custom CSS, which will work at first then as soon as I refresh the page the updates disappear.  

  • show adjacent slides ✔
  • add 16px gap btw slides (mobile only, desktop is correct at 24px) 
  • increase width of each slide = 80% of viewport width 

site: octagon-horse-l653.squarespace.com
pswd: huddle

image.png.c67e0bc316b856e8578fac2ab710d442.png

Screenshot2024-08-03at4_11_26PM.png.d4917ceb32f3bd6f15d71ccefb4f3daf.png

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.