I am a bit confused as to how to properly deal with Bootstrap's drop-down menus in some contexts. In particular, it seems that menus have to be built this way:
<div class="btn-group">
<button...>
<ul class="dropdown-menu">
<li...>
</ul>
</div>
Now I would like to place this button within some container provided by some library, which happens to have unfortunate CSS.
See this example, due to the parent container z-index and position relative, the dropdown of the top button appears under the other button.
The dropdown-menu seems to inherit the relative context's features, which makes it not actually show up on top of many other elements of the page.
Is there either a way to locally address the issue by only changing things inside the btn-group
div
?
Or alternatively, is there a way to decouple the button from its dropdown-menu within the HTML, so that they don't get stuck in the same context?
(This problem is quite similar to Bootstrap dropdowns menus appearing behind other elements - IE7 but I am constrained by other libraries and not free to just change the enclosing HTML...)