4

I've a problem with the Slimbox plugin. When I click over an image, it loads the overlay in front of the image.

Here is an example link: http://immodena.ch/verkaufsangebote/villen/item/38-villa-mit-wohnen-und-arbeiten

I don't understand where is the trouble. I've thought that was a problem with some z-index that overrides the default plugin's stylesheet, but with the inspector I don't see anything in this direction.

Some of you, could tell me what am I doing wrong?

1 Answers1

10

right, finally found the problem.

You need to add z-index:1; to #lbImage { }

Then you need to remove z-index:9999; from #lbCenter, #lbBottomContainer { }

and remove z-index:9998; from #lbOverlay { }

Hope this helps :)

 #lbImage {
     z-index:1;
 }

div#lbCenter,
div#lbOverlay,
div#lbBottomContainer {
    z-index: inherit;
}
RyanS
  • 3,964
  • 3
  • 23
  • 37
Lodder
  • 19,758
  • 10
  • 59
  • 100
  • 4
    These changes may fix the mask issue but makes the plugin not working well. The problem is about using jQuery 1.9+. If you use jQuery 1.8.3-, the problem will gone. – Vahid Apr 14 '13 at 11:02
  • Thanks Natasha! That worked for me! Seems Slimbox needs to release an update. – James Apr 18 '13 at 19:29
  • 1
    @Natasha - fair enough, but I'm not going to recommend the OP hacking into the plugin file. The developer should release an update to cate for the latest version of jQuery. Easier to do what I suggested rather than hack the plugin which might lead to it becoming faulty ;) – Lodder Apr 19 '13 at 10:00