Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

z-index conflict with Bootstrap navbar-fixed-top #7

Open
iversoncreative opened this issue Aug 21, 2013 · 4 comments
Open

z-index conflict with Bootstrap navbar-fixed-top #7

iversoncreative opened this issue Aug 21, 2013 · 4 comments

Comments

@iversoncreative
Copy link

Thanks for sharing this simple and lightweight plugin.

I implemented this lightbox on a Bootstrap built site and noticed a conflict with the navbar-fixed-top. Though the navbar was fading back, the close button was hidden beneath it, and images that were tall enough were being cut off by it. I added a z-index to the #lightbox and it's fixed.

Otherwise, works perfectly. Again, thanks.

  • P
@DouglasdeMoura
Copy link

I've added

#lightbox { z-index:99999; }

and this issue was fixed. See working here: http://blogdaengenharia.com/como-consegui-uma-calculadora-grafica-de-graca/ (click in the first image of the post).

@nathanhornby
Copy link
Contributor

I'm having this issue on a non-bootstrap site.

Using a fixed header with a z-index of 98, it's still sitting on top of the close button, even though it's set to 9999. Something else at play?

@nathanhornby
Copy link
Contributor

I ended up fixing this by giving the .lightbox itself a z-index.

So z-index order ended up being forced to:

.lightbox-button
.lightbox-caption
.lightbox
header

I'll push a change over, but might need testing.

@quizclubiitindore
Copy link

I tried to use navbar and lightroom in bootstrap site but only either of them is working. Both of them are not working simultaneously.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants