I am attempting to position the brand/logo on the right side of my navbar, but I am facing an issue where the logo remains inside the collapse menu when viewed on mobile devices.
Here is the correct positioning in desktop view: https://i.sstatic.net/ZNxm9.png
However, when switching to mobile view, the logo overlaps with the menu opening downwards:
https://i.sstatic.net/aChtk.png
Below is the code snippet that I am working on:
<nav class="navbar navbar-expand-lg navbar-dark fixed-top bg-sika">
<div class="container">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarsExampleDefault">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="http://example.com" id="dropdown01" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Rooms</a>
<div class="dropdown-menu" aria-labelledby="dropdown01">
<a class="dropdown-item" href="#">Garages & Parking Lots</a>
<a class="dropdown-item" href="#">Kitchens & Bathrooms</a>
<a class="dropdown-item" href="#">Bedrooms & Living Rooms</a>
<a class="dropdown-item" href="#">Balconies & Terraces</a>
<a class="dropdown-item" href="#">Swimming Pools & Water Tanks</a>
<a class="dropdown-item" href="#">Façades</a>
<a class="dropdown-item" href="#">Sloped Roofs</a>
<a class="dropdown-item" href="#">Flat Roofs</a>
<a class="dropdown-item" href="#">Basements & Retaining Walls</a>
<a class="dropdown-item" href="#">External Thermal Insulation</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link" href="#">100 Solutions</a>
</li>
<li class="nav-item">
<a class="nav-link page-scroll" href="#pos">Store Locations</a>
</li>
<li class="nav-item">
<a class="nav-link page-scroll" href="#registo">Registration</a>
</li>
<li class="nav-item">
<a class="nav-link page-scroll" href="#contacto">Contact</a>
</li>
</ul>
</div>
<a class="navbar-brand" href="#">
<img src="img/logo_sika_pt_02.png" width="225" height="45" class="d-inline-block align-top" alt="">
</a>
</div>
</nav>
I have borrowed this code from a template and now making modifications as needed.