I am currently struggling to align my Bootstrap 4 dropdown items side by side as shown below:
https://i.sstatic.net/i3pP0.png
The desired layout involves having Item 1 and Item 2 as dropdown options when hovering over the first Test item.
I attempted to use the CSS property float: left
, but it did not produce the desired result.
Currently, the dropdown items are displaying stacked on top of each other like this:
https://i.sstatic.net/gxWzU.png
<div class="collapse navbar-collapse" id="navbarToggler">
<ul class="navbar-nav ml-auto">
<li class="nav-item dropdown">
<a class="nav-link" href="javascript:void(0)" id="NavbarToggler">Welkom</a>
<div class="dropdown-menu" aria-labelledby="NavbarToggler">
<a class="dropdown-item mt-2" href="info">Informatie Stedenband</a>
<a class="dropdown-item" href="geschiedenis">Geschiedenis Stedenband</a>
</div>
</li>
</div>