Question

I've implemented Lightbox 2 in my website, but I noticed a bug. The lightbox keeps getting bigger as I change pictures. After a while it looks like this:

enter image description here

I'm unfortunately not knowledgeable enough of JS, so I can't fix the code myself.

Was it helpful?

Solution

Turns out there was some of my own css interfering with lightbox.

This element caused the issue:

img
{
    min-height: 100%;
    width: auto;
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top