I'm currently working on mastering bootstrap through an online tutorial, but I've hit a roadblock when it comes to right-aligning items in a navbar. I've double-checked my code against the instructor's, and it's a perfect match:
<nav class="navbar navbar-expand-lg bg-dark navbar-dark">
<div class="container">
<a class="navbar-brand" href="#">Frontend Bootcamp</a>
<div class="collapse navbar-collapse">
<ul class="navbar-nav ms-auto">
<li class="nav-item">
<a class="nav-link" href="#">What You'll learn</a>
</li>
<li class="nav-item" >
<a class="nav-link" href="#">Questions</a>
</li>
<li class="nav-item" >
<a class="nav-link" href="#">Instructors</a>
</li>
</ul>
</div>
</div>
</nav>
Although I've included "ms-auto" to align the items to the right, they stubbornly remain on the left side of the navbar. Strangely, when the instructor executes the same code, everything magically aligns to the right. What could possibly be causing this discrepancy?