Вопрос

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.

Это было полезно?

Решение

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

This element caused the issue:

img
{
    min-height: 100%;
    width: auto;
}
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top