Align a dropdown to the right of its parent by adding .dropdown-menu-right
to a .dropdown-menu
<div class="docs-example">
<div class="dropdown">
<button class="btn dropdown-toggle sr-only" type="button" id="dropdownMenuBtn" data-toggle="dropdown">Dropdown <i class="fa fa-caret-down"></i></button>
<ul class="dropdown-menu dropdown-menu-right" 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>