Jump to content

Extra padding in mobile testimonial carousel slider

Recommended Posts

I am REALLY struggling to format the mobile version of my testimonials slider. I've been combing through these forums and self-teaching basic CSS, but I've spent far too much time on this and I'm calling in reinforcements 😂

I have a basic testimonials slider on my homepage and have made the ridiculous extra padding between elements "better" on mobile but can't get it where I want it. Ideally, I'd love the height of each slide to auto-adjust so that shorter testimonial slides aren't constrained to the height of longer testimonial slides.

I also tried to add a button to the carousel, which looked great on desktop (screenshot attached) but was an absolute disaster on mobile, so I pulled it for now. Here's the code I've already got in place for mobile:

/*Mobile Carousel*/

@media screen and (max-width:767px) {
[data-section-id="65a4b0a5e511c65266cb78e3"] {
 .user-items-list {
   margin-bottom: 550px !important;
      height: 70vw !important;
}
.user-items-list-carousel__slide {
    margin-top: -10px !important;
  
}
.mobile-arrows {
    position: relative;
    top: -5px;
  }
  }}

Would SO appreciate any help you CSS wizards can provide! Wish Squarespace did a better job with its responsive UX. Thank you in advance for saving me!

Squarespace Testimonials Desktop.png

Mobile Testimonial Slide 1.png

Mobile Testimonial Slide 2.png

Link to comment
  • Replies 7
  • Views 1.6k
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...
On 2/11/2024 at 10:16 AM, amg28416 said:

@tuanphan thank you! I pulled the module from my homepage for the time being, so I duplicated the homepage here and readded the carousel.

URL: www.arimason.com/home-test

Password: ThisIsJustATest

Use this code to Website > Website Tools > Custom CSS

@media screen and (max-width:767px) {
.user-items-list-item-container[data-section-id="65c83b983c915d544cfba903"] .list-item-content__description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    overflow: hidden;
}
}

 

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

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.