Currently, I am integrating Bootstrap 4 into a Laravel 8 blog platform that I am working on. While the menu items are correctly positioned, I am facing an issue where I need to move the last menu item to the right. Despite trying various options like ml-auto
, I have not been able to achieve the desired effect on the item. Previous solutions from similar posts have also failed in my case. Any help or guidance on this matter would be greatly appreciated. Below is the code snippet for reference:
<nav class="navbar navbar-expand-lg navbar-light navbar-dark bg-dark">
<div class="container-fluid">
<a class="navbar-brand" href="#">{{config('app.name', 'Learning')}}</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
<div class="nav navbar-nav">
<a class="nav-link" href="/">Home</a>
<a class="nav-link" href="/about">About Us</a>
<a class="nav-link" href="/services">Services</a>
<a class="nav-link" href="/posts">Blog</a>
<a class="nav-link" href="/posts/create">Create Post></a>
</div>
</div>
</div>
</nav>