I am trying to create a tab menu that has nav-item dropdown
to the far right of the menu.
Bootstrap 4 alpha 5, with float-xs-right
its working: http://codeply.com/go/FCFPpRqhZd
Bootstrap 4 alpha 6, i changed to float-right
but it isnt working: http://codeply.com/go/5mddDUv1M6
Have idea?
Since alpha 6 is now flexbox, float
will no longer work in this case.
Use the ml-auto
utility class instead for margin-left:auto
<div class="col-md-12">
<ul class="nav nav-tabs">
<li class="nav-item">
<a href="#" class="nav-link active">Link 1</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link">Link 2</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link">Link 3</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link">Link 4</a>
</li>
<li class="nav-item dropdown ml-auto">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Account</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Separated link</a>
</div>
</li>
</ul>
</div>