Jump to content

Looking to Shrink Summary Block Lightbox Gallery

Go to solution Solved by Beyondspace,

Recommended Posts

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

Link to comment
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?

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio plugin
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
  • Solution
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

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio plugin
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

My testing result

image.thumb.png.df0f07d61ee48453b81b94e4f39a5532.png

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio plugin
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

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.