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
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

<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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.