Jump to content

Replace Index slideshow gallery images for mobile

Recommended Posts

Site URL: https://pelican-rectangle-748l.squarespace.com/home

Hi Guys,

I wanted to know if its possible to replace the Index slideshow gallery images for mobile? I have tried this code for to get it show the full image as it was cutting my image off.

<style>
  @media screen and (max-width:640px) {
  .Index-gallery-item-image img {
    width: 100% !important;
    left: 0 !important;
    top: 0 !important;
    height: auto !important;
}
  }
</style>

But using this code shows the full image, but doesn't show my button that I have on-top of the index slideshow correctly. So now I've created different images for mobile, Is there a way I can just add these images to show on mobile? I have 3 images in my slideshow. 

Link to comment
  • Replies 1
  • Views 561
  • Created
  • Last Reply
<style>
  @media screen and (max-width:640px) {
  .Index-gallery-item-image img {
    width: 100% !important;
    left: 0 !important;
    top: 0 !important;
    height: auto !important;
}
    .Index-gallery-wrapper.gallery-root {
    position: relative;
}
.Index-gallery-item-content {
    max-width: 100% !important;
    padding-top: 0 !important;
    position: static;
}
    .Index-gallery-item-content-body a {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
}
  }
</style>

 

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.