bootstrap dropdown bubble align right (not push-right)
Bootstrap 3.1+
Adding the class .dropdown-menu-right to the same div containing the class dropdown-menu:
<div class="dropdown-menu dropdown-menu-right">
STUFF
</div>
http://getbootstrap.com/components/#dropdowns-alignment
Bootstrap 2.3 & 3.0
Add the class .pull-right to the same div containing the class dropdown-menu
<div class="dropdown-menu pull-right">
STUFF
</div>
This seems to work for me using bootstrap 3.0
This can be solved with the bootstrap class dropdown-menu-right
with dropdown-menu
that is specifically for this problem that uses the css properties right: 0;
and left: auto;
to right align it.
This solution is working for me.
Source - http://getbootstrap.com/components/#btn-dropdowns-dropup (go to developer tools for this)
<div class="dropdown-menu dropdown-menu-right">
This is still working in boostrap 4.2.1 :)