Jump to content

Adjust banner slideshow height to fit each individual slide on mobile

Recommended Posts

I have a banner slideshow section that I am using for testimonials that vary in length, so on mobile some of the slides have a large gap above/below the content. Is it possible to scale the margins for each individual slide to cater to the content so there isn't such a large gap between the heading, body copy, and navigation arrows?

Site password: latshaw

Screenshot 2024-03-06 at 1.29.45 PM.png

Screenshot 2024-03-06 at 1.29.52 PM.png

Link to comment
  • Replies 3
  • Views 1k
  • Created
  • Last Reply

Top Posters In This Topic

You can consider reduce text on mobile only, by using this code to Website > Website Tools > Custom CSS

@media screen and (max-width:767px) {
.user-items-list-item-container[data-section-id="65dd6a1b57a417473e08060a"] h2.list-item-content__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 8;
    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.