I'm looking to have a menu on the right side of my page. It looks good on mobile view with the menu aligned to the left and white space on the right. However, on desktop view, I want the menu to be aligned to the right with white space on the left. How can I achieve this?
Currently, I am using the mr-auto
class which works well on mobile. How can I apply this only to mobile?
<ul class="navbar-nav mr-auto">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">English</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">French</a>
<a class="dropdown-item" href="#">German</a>
<a class="dropdown-item" href="#">Doutch</a>
</div>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Michel Pienazak</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Settings</a>
</div>
</li>
</ul>