Now I know that similar questions have been dealt with here, but none of those solves my problem. So please understand. I've tried ml-auto
next to navbar-nav
class, but somehow the items are align to the left. Please see my code below:
<nav class="navbar navbar-default navbar-expand nav-bar fixed-top">
<div class='navbar-brand nav-link' onclick="location.href='/'">
<img class="ci" src="{% static 'museum/images/ci.png' %}" alt='ci'>
</div>
<div class="navbar-text">
<ul class="navbar-nav ml-auto">
<li class='navbar-item'>Home</li>
<li class='navbar-item my-auto'>Menu</li>
</ul>
</div>
</nav>
I haven't touched anything in the CSS, but the items are aligned to the left. What is the problem? Thanks.