Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lightbox Squashed Images

I'm currently having a problem with Lightbox 2. All scripts and CSS are installed correctly and I haven't changed or added code to the css and scripts.

I keep getting the result below every time and I can't seem to fix it. Any ideas on why this keeps happening?

squashed picture

like image 527
Wiseguy Avatar asked Jul 25 '13 12:07

Wiseguy


1 Answers

I had the same problem. Fortunately, the solution is very easy:

In lightbox.css, add the following line to .lightbox .lb-image:

max-width: inherit;

This should fix your problem. I found the answer at https://github.com/lokesh/lightbox2/issues/69

like image 131
Alex Braha Stoll Avatar answered Nov 09 '22 15:11

Alex Braha Stoll