Going through my codes, I noticed this.
#tooltip{ background-color: yellow; width: 200px; height: 200px; color: black; padding: 10px; z-index: 15; }
Your #tooltip has a z-index, but it is not located. The Z-index property will only work if it has one of the values โโof the position property. And given that you want the tooltip to stand out, you should use an absolute position value like this.
#tooltip{ position: absolute; background-color: yellow; width: 200px; height: 200px; color: black; padding: 10px; z-index: 15; }
HTML
<div id="map-container"> <div id="nav-bar"> The nav bar </div> This is the map container <div id="tooltip"> This is the Tooltip </div> </div>
This holds #tooltip on top ....
source share