Jump to content

Adjust Carousel Image Height on Mobile

Go to solution Solved by Lesum,

Recommended Posts

Hi there,

I am wanting to increase the size of the images of a couple of carousel blocks on my website (mobile version). They display fine on desktop, but on mobile they look really small. Ideally the image would be the full width of the mobile screen with the text and arrows sitting below. Please find a couple of images attached of the two blocks I am referring to.

Any help would be much appreciated!

IMG_1024.PNG

IMG_1023.jpg

Link to comment
  • Replies 3
  • Views 190
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

  • Solution

@MelitaM You can add this code under Website > Pages > Website Tools > Custom CSS to transform the carousel images to full width on mobile screens:

@media only screen and (max-width: 767px) {
    section[data-section-id="6663cf9b8add9a3dcdc77163"] .user-items-list-carousel__media-container {
       width: 100% !important;
    }
  
    section[data-section-id="6663cf9b8add9a3dcdc77163"] .user-items-list-carousel[data-layout-width="inset"] .user-items-list-carousel__gutter {
       padding-left: 0 !important;
       padding-right: 0 !important;
    }
}

 

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

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.