Search code examples
javascriptlightbox2

Lightbox2 width automatically sets


I'm having problems with resizing, if i for example look at a picture that's 800px in width, and then i get a picture with 200px width, then all other pictures gets the same width until i get a picture with a width of 100px then they go down to that resolution. It all goes away when i refresh the page but starts over again. The same problem occurs in all browsers(ie,chrome,firefox and safari)

Suspecting a caching problem but can't really find where that problem might be

Thanks


Solution

  • I also had this problem and it seems Bootstrap caused the problem here try to add this css-line

    .lb-image{   max-width: inherit; }