Jump to content

Lightbox resizing

Recommended Posts

Posted

Site URL: https://www.chandrastation.com/

PW:1234

I have been trying to resize my lightboxes for mobile and I am having trouble I referred to this post

that was made back in may of last year but it didnt solve my problem unless I didnt change something that I was supposed to. My issue is that the lightbox is super long and not wide enough. The code that I currently have I pasted below. Any help is really appreciated

//Lightbox resize for mobile

@media screen and (max-width:640px) {
.collection-type-products .lightbox-content {
    max-width: 350px !important;
}
}

 

  • Replies 1
  • Views 781
  • Created
  • Last Reply
Posted
On 3/24/2021 at 12:13 AM, Bcbellows said:

Site URL: https://www.chandrastation.com/

PW:1234

I have been trying to resize my lightboxes for mobile and I am having trouble I referred to this post

that was made back in may of last year but it didnt solve my problem unless I didnt change something that I was supposed to. My issue is that the lightbox is super long and not wide enough. The code that I currently have I pasted below. Any help is really appreciated


//Lightbox resize for mobile

@media screen and (max-width:640px) {
.collection-type-products .lightbox-content {
    max-width: 350px !important;
}
}

 

Your lightbox is a custom javascript plugin, try

@media (max-width: 767px) {
    html .c-lightbox__content {
      max-width: 95%;
  }
}

image.thumb.png.d7740bbcf7581516b18e5c83bbdffae1.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

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.