Jump to content

Increasing Gallery Image Size in Mobile

Recommended Posts

  • Replies 3
  • Views 384
  • Created
  • Last Reply

Top Posters In This Topic

Posted
On 2/23/2022 at 2:33 AM, tuanphan said:

Try adding to Design > Custom CSS

@media screen and (max-width:767px) {
body#collection-61ec64673ad0a2796ceb21f3 .gallery-slideshow-item img {
    width: 120% !important;
    left: 50% !important;
    transform: translateX(-50%);
}
}

 

Thank you so much for your help. Now that the image is larger, it is being cropped on the left/right/bottom. Can you help me enlarge the space around the image, so that it looks like the "after" image in my original post?

Thanks!

Screen Shot 2022-02-28 at 10.43.40 AM.png

  • 2 weeks later...
Posted

Hi,

Try this new code

@media screen and (max-width:767px) {
body#collection-61ec64673ad0a2796ceb21f3 {
.gallery-slideshow-item img {
    width: 120% !important;
    left: 50% !important;
    transform: translateX(-50%);
}
    .gallery-slideshow-item-src {
    overflow: visible;
}}
}

 

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.