Trying to customize my navbar for tablet and mobile devices is proving to be a challenge. I am looking for a way to make the dropdown button take up the entire page when clicked on. It seems like JavaScript might be the solution, but I'm not quite sure how to implement it.
The current setup uses Bootstrap 4 and some CSS for styling, but I need to adjust it to behave as described above on smaller screens.
<nav class="navbar navbar-expand-lg navbar-light bg-yellow px-5 py-3 font-weight-bold" id="navbar">
<div class="logo d-flex flex-column">
<a href="index.html" class="mx-auto"><img src="./Design/Logo.png" width="40" height="40" class="logo-img"></a>
<a class="navbar-brand mx-auto font-weight-bold" href="#">Logo</a>
</div>
<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" id="navbarNav">
<ul class="navbar-nav w-90 justify-content-around ml-lg-auto">
<li class="nav-item">
<a class="nav-link" href="#">Academy</a>
</li>
...
...
<li class="nav-item justify-self-end">
<a href="./contact.html" class="btn btn-danger">Button</a>
</li>
</ul>
</div>
</nav>
I am aiming for the design where clicking on the dropdown button on tablets or mobiles expands it to fill the whole space available.