Can anyone help me with center aligning navbar-brand?
When I right align navbar-toggler for mobile devices, it causes the logo to be off-center.
Is there a way to independently align these two classes, and if so, how can I achieve this?
<nav class="navbar navbar-expand-md navbar-light fixed-top" id="mainNav">
<a href="index.php#page-top" class="navbar-brand mx-auto PElogo">
<img src="https://www.theharbourhousehotel.co.uk/img/LOGO-HH-PNG.png" alt="Harbour House Hotel Logo" title="Harbour House Hotel">
<h1>Harbour House Hotel</h1>
<h2>Portpatrick</h2>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#HHnavbar" aria-controls="HHnavbar" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div id="HHnavbar" class="navbar-collapse collapse">
<ul class="navbar-nav mr-auto">
<li class="nav-item"><a class="nav-link js-scroll-trigger" href="#About">About</a></li>
<li class="nav-item"><a class="nav-link js-scroll-trigger" href="#Rooms">Rooms</a></li>
</ul>
</div>
</nav>
Check out the JS Fiddle for this code: https://jsfiddle.net/nathonjones/va9g03tj/3/
Appreciate any help. Thank you.