Reputation: 6400
I'm building a page using Boostrap and Bootstrap Tiles. I'm trying to use Boostrap's Popover to show event data on a mini calendar. The problem is that the popover is hidden under the adjacent tile.
I know z-index
is relative to the parent and sibling elements but is there a way to configure the popover to be in front of all elements?
Upvotes: 0
Views: 1676
Reputation: 14927
Try setting the container to the body, like so:
$('[data-toggle="popover"]').popover({container: 'body'});
That makes the popovers parent the <body>
element.
So if still needed, you can adjust the z-index from there.
HTH, -Ted
Upvotes: 3