Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
Sign in to follow this  
ellewin

Move lightbox

Recommended Posts

Hello, 

Does anyone know how to move the Lightbox to the middle of the screen? Mine is displaying to the left (picture below)... I am assuming this is because I am using a product page and normally there would be text/add to cart/price etc... I took it all out because I wanted the Zoom function but also the Lightbox that a Gallery page doesn't have...

I just want it to display in the center of the screen. Anyone? 

Screen Shot 2020-09-16 at 10.42.47 PM.png

Share this post


Link to post

I used this code: 

//lightbox display full size image not crop image
.gallery-lightbox-item img {
    top: 0 !Important;
    width: auto !important;
    height: 100% !important;
}

 

I think this is happening because the width is auto but the height is 100% but it is the only way I can get the entire image to show up and not be cropped. 

 

Is this there something that can center the image on lightbox? 

Share this post


Link to post

okay this worked... 

 

Quote


.yui3-lightbox2 .sqs-lightbox-slideshow .sqs-lightbox-padder {
    position: absolute;
    text-align: left;
    top: 15%;
    left: 2%;
    bottom: 15%;
    right: 2%;
}
.yui3-lightbox2 .sqs-lightbox-slideshow {
    left: 600px;
    top: 0px;
    width: 1500px;
    height: inherit;
    position: relative;
    font-size: 0px;
}
.gallery-lightbox-item img {
  width: auto !important;
  height: 100% !important;
  margin: 0 auto;
  left: 50% !important;
  transform: translateX(-50%);
}.gallery-lightbox-item img {
    top: 0 !Important;
    width: 100% !important;
    height: 100% !important;
}

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Sign in to follow this  

×
×
  • Create New...