SarahBoess Posted December 15, 2021 Share Posted December 15, 2021 Site URL: http://www.ericorr.squarespace.com/news I'm looking to shrink down the lightbox on this page when you click the image next to "Copenhagen Contemporary Light and Space Exhibition" so that it doesn't pop up full screen and having trouble getting the code to work for me. Simply adding padding or manipulating the width distorts the image or leaves it not centered. Is there a simple solution to this I'm overlooking Password is sitedraft Beyondspace 1 Link to comment
Beyondspace Posted December 16, 2021 Share Posted December 16, 2021 3 hours ago, SarahBoess said: Site URL: http://www.ericorr.squarespace.com/news I'm looking to shrink down the lightbox on this page when you click the image next to "Copenhagen Contemporary Light and Space Exhibition" so that it doesn't pop up full screen and having trouble getting the code to work for me. Simply adding padding or manipulating the width distorts the image or leaves it not centered. Is there a simple solution to this I'm overlooking Password is sitedraft You want to make the image smaller or the whole lightbox with black background smaller? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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
SarahBoess Posted December 16, 2021 Author Share Posted December 16, 2021 (edited) @bangank36 The whole lightbox, ideally. Edited December 16, 2021 by SarahBoess Link to comment
Solution Beyondspace Posted December 16, 2021 Solution Share Posted December 16, 2021 2 hours ago, SarahBoess said: @bangank36 The whole lightbox, ideally. Try #collection-619d2a8d23577313a95734b3 .sqs-lightbox-padder { height: 80vh !important; width: 80vw !important; position: relative !important; top: 50% !important; left: 50% !important; transform: translate(-50%, -50%) } #collection-619d2a8d23577313a95734b3 .sqs-lightbox-padder img { position: absolute; top: 50% !important; left: 50% !important; transform: translate(-50%, -50%); } Let me know how it works on your site Support me by pressing 👍 if this useful for you tuanphan 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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
Beyondspace Posted December 16, 2021 Share Posted December 16, 2021 My testing result BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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
SarahBoess Posted December 22, 2021 Author Share Posted December 22, 2021 @bangank36 That's perfect. Thank you so much for your help! Beyondspace 1 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