Looking for tips on how to incorporate a dropdown navbar using Bootstrap 4. I've utilized the .navbar-bottom class to achieve a horizontal layout.**
The .navbar-bottom class is used to include a scrollbar in the navbar**
.navbar-bottom {
overflow-x: auto;
white-space: nowrap;
}
HTML
<nav class="navbar navbar-expand navbar-light navbar-bottom">
<ul class="navbar-nav mr-auto pl-2">
<li class="nav-item"><a class="nav-link px-6" href="#">Menu Item</a></li>
<li class="nav-item">
<div class="dropdown">
<a class="nav-link" href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown</a>
<div class="dropdown-menu">
<a href="#" class="dropdown-item">Dropdown1</a>
<a href="#" class="dropdown-item">Dropdown2</a>
<a href="#" class="dropdown-item">Dropdown3</a>
<a href="#" class="dropdown-item">Dropdown4</a>
</div>
</div>
</li>
<li class="nav-item"><a class="nav-link px-6" href="#">Menu Item</a></li>
.........................................................................
.........................................................................
.........................................................................
.........................................................................
<li class="nav-item"><a class="nav-link px-6" href="#">Menu Item</a></li>
</ul>
</nav>