James Leist James Leist - 1 year ago 86
jQuery Question

Resizing Lightbox 2 images

So I need lightbox 2 to have a maximum image width to resize images that are too large.

To do this I have adjusted the lightbox.css file to the following

#lightbox img {

This works in resizing the image itself, however the white Lightbox overlay remains the full size of the original image file so the image just kind of gets lost in the middle of the Lightbox. Any ideas? I appreciate your help :-)

Answer Source

Set this:

.lb-outerContainer {
    max-width: 720px; 
    max-height: 720px;
.lb-dataContainer {
    max-width: 220px; /* For the text below image */