How to show popover that is hiding behind navbar

All we need is an easy explanation of the problem, so here it is.

I am new to Bootstrap and Angular. In my webpage there is a button and i am providing a popover for a span like this

<span popover="Download Project History" popover-trigger="mouseenter" tooltip-placement="top" style="padding: 5px" translate="DOWNLOAD">DOWNLOAD</span>

But its getting hidden under navbar.

Based on my googling i found to provide data-container=”body” in the html element. But its not working too.

Can anyone please help me?


How to solve :

I know you bored from this bug, So we are here to help you! Take a deep breath and look at the explanation of your problem. We have many solutions to this problem, But we recommend you to use the first method because it is tested & true method that will 100% work for you.

Method 1

I had a similar problem where the popover was hidden behind overflow content and adding the following attribute fixed it:


Method 2


attaches the tooltip to the body and makes it visible.

Method 3

You need to override the z-index value, you can have a look for the default values (for navbar and popover) in original Bootstrap’s CSS file. In my case this helped:

.popover {

    /* just in case it would overlap with fixed navbar, then show this over the navbar. Original value 1010, value for navbar is 1030 */

    z-index: 1030;


Note: Use and implement method 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply