Toggleable, contextual menu for displaying lists of links.
You need to wrap the dropdown's trigger and the dropdown menu within .dropdown
, or another element that declares position: relative;
.
<div class="docs-example">
<!-- Basic Dropdown -->
<div class="dropdown">
<button class="btn dropdown-toggle sr-only" type="button" id="dropdownMenu1" data-toggle="dropdown">Dropdown <i class="fa fa-caret-down"></i></button>
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu" id="dropdownMenu1">
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">Action</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">Another action</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">Something else here</a></li>
<li role="presentation" class="divider"></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">Separated link</a></li>
</ul>
</div>
</div>