I am having a problem with bootstrap 4 responsive navbar. On smaller screens works as expected (logo in the centre, hamburger menu on the right)
The problem occurs on larger screens (desktop) where the logo and login button are pushed to the left side of the page. Logo should be positioned at the absolute centre and login button where the text ends. I tried using flexbox but couldn't get the desired effect.
<nav class="navbar navbar-expand-lg navbar-dark">
<a class="navbar-brand brand text-center mx-auto" href="#">
<h2>LOGO</h2>
<h5>title</h5>
</a>
<button class="navbar-toggler custom-toggler" type="button" data-toggle="collapse" data-target="#navbarNav">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="#">LOGIN</a>
</li>
</ul>
</div>
</nav>
Whole code available on codeply https://www.codeply.com/go/uYvbe1Hsdh.