CSS : z-index causes float over navbar
-
Ciao, Daniele;
I have a small CSS-related issue I can’t seem to overcome on my own:On the example page given, https://liberal.is/netikette, you can see that glossary links (I have given them a yellow background ftm to make them easy to identify) will eventually float above the navbar when scrolling down. While this is OK for the actual tooltip, it’s not so much for the link carrying the tooltip; the latter should not be z-indexing higher than surrounding content, imo.
From what I can see, this appears to be owed to the fact that the span carrying the class .glossary-link is nested inside the span carrying the class .glossary-tooltip. While .glossary-link has no instruction on z-index, .glossary-tooltip does (as it must, of course, (‘z-index: 999;’ in your original .css, as far as I can see) to overlay above the surrounding content when triggered). However; the nesting makes for the rather unfortunate behaviour described.
Is this something you think can be remedied in your css?
(Or would you recommend rather tackling this by just upping the z-index of the navbar to something higher than your .glossary.tooltip?)Thank you for your kind consideration, as alwyays
+ best regards,lxm
The page I need help with: [log in to see the link]
- The topic ‘CSS : z-index causes float over navbar’ is closed to new replies.