Bcbellows Posted March 23, 2021 Share Posted March 23, 2021 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; } } Link to comment
Beyondspace Posted March 25, 2021 Share Posted March 25, 2021 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%; } } BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment