Jump to content

How to make the carousel mobile version looks like the web version (displaying more than one image)

Recommended Posts

Posted

Hi,

I'm trying to make the mobile version looks like the web version. Where you can see half of the photo on each side of the one you are looking at. See picture for reference.

 

Bests,

 

Thank you !

carousel.jpg

carousel_mobile.jpg

  • Replies 7
  • Views 836
  • Created
  • Last Reply

Top Posters In This Topic

Posted
On 7/1/2023 at 10:07 PM, valentinlavoute said:

Don't know if I need to make another topic but by any chance, do you have the code to make the image gallery 3 rows on mobile ?

https://valentinlavoute.com/

Add to Design > Custom CSS

/* masonry 3 items */
@media only screen and (max-width: 640px) {
    .gallery-masonry .gallery-masonry-wrapper {
        columns: 3;
        column-gap: 0;
        height: auto!important;
        display: block!important;
        padding: 0px;
    }
    .gallery-masonry-item-wrapper {
        height: auto!important;
    }
    .gallery-masonry-item {
        position: relative!important;
        transform: none!important;
        width: 100%!important;
        display: block;
        padding: 1.5px!important;
        box-sizing: border-box;
    }

    .gallery-masonry .gallery-masonry-item img {
        height: 100%!important;
      	width: 100%!important;
    }
}

 

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!)

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.