Jump to content

View Full Screen on Light Box

Recommended Posts

You may want this

To add CSS, go to Design -> Custom CSS
 

image.thumb.png.649866383afaa01893662d5edaed7229.png

.gallery-lightbox-item img {
    width: auto!important;
    height: 100% !important;
    z-index: 99;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%);
}

 

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, Keyword Highlighter
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
  • 4 weeks later...
On 8/31/2020 at 4:40 AM, bangank36 said:

You may want this

To add CSS, go to Design -> Custom CSS
 

image.thumb.png.649866383afaa01893662d5edaed7229.png


.gallery-lightbox-item img {
    width: auto!important;
    height: 100% !important;
    z-index: 99;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%);
}

 

Hi Bangan,

I want to enable images in gallery lightboxes to show at their full width (no matter the height), so I used this code:

.gallery-lightbox-item {
  height: auto !important;

}

.gallery-lightbox-wrapper {
  overflow-x: hidden;
  overflow-y: auto;
} 

This works, with one issue: The scroll bar is outside the <Next> arrow.

I tried substituting .gallery-lightbox-wrapper with each of these other IDs I found in the page source: 

  • .gallery-lightbox-wrapper
  • .gallery-lightbox-item-wrapper
  • .gallery-lightbox-item
  • .gallery-lightbox-list
  • .gallery-lightbox-item-src
  • .gallery-lightbox-item-img

Unfortunately the only one that came close was .gallery-lightbox-list — that put the scroll bar inside the arrow, but for some reason scrolling didn't work.

Any ideas to solve this?

Thanks in advance.

Link to comment
  • 2 weeks later...
On 8/31/2020 at 12:40 PM, bangank36 said:

You may want this

To add CSS, go to Design -> Custom CSS
 

image.thumb.png.649866383afaa01893662d5edaed7229.png


.gallery-lightbox-item img {
    width: auto!important;
    height: 100% !important;
    z-index: 99;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%);
}

 

@bangank36 sorry for the late reply, i have been busy with work recently. Thank you for solving this for me! Now I can sleep more peacefully >_< Take care! 

Link to comment
  • 3 months later...
On 1/13/2021 at 8:57 PM, Milefive said:

Is there a CSS code to do this for a form? The scroll function is missing & visitors to my website cannot hit submit

Can you share link to page where you use form? We can check easier

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.