I am currently working on aligning the brand-item and nav-items on mobile view.
The alignment is incorrect in the mobile view. It is not centered. The "Brand" should be vertically aligned with "link1-3".
In the desktop view, the alignment should be like this.
I have attempted multiple solutions without success.
Here is one of the solutions I tried on Stack Overflow but it did not work.
My current code can be found on Codeply.com.
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<a href="#" class="navbar-brand mx-auto">Brand</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-end nav-justified" id="navbarNav">
<div class="navbar-nav">
<a class="nav-item nav-link active" href="#">Link 1<span class="sr-only">(current)</span></a>
<a class="nav-item nav-link" href="#">Link 2</a>
<a class="nav-item nav-link" href="#">Link 3</a>
</div>
</div>
</nav>
What steps should I take to correctly align the brand-item and nav-items?
Edit1: Revised the image and provided a clearer description of my alignment goals.
Edit2: Found a solution! All the answers I received address my issue. However, dmbaughman's answer is the simplest and does not disrupt other content on the website.