I want to recreate the dropdown menu seen on this page, with the full width of the page but without any content. Additionally, I need all the "lorem" links in the menu to be centrally aligned in the navbar. Unfortunately, I am unable to modify the bootstrap classes to achieve this. How can I resolve this issue? (please view it in full page mode, and I am unsure why the hover menu does not work with the code snippet)
.navbar-nav {
display: flex;
justify-content: space-between;
align-items: center;
}
.navbar a:hover {
text-decoration: underline;
}
.navbar-nav {
display: flex;
align-items: center;
justify-content: space-between;
}
.dropdown-menu {
font-size: 0.8rem;
left: 0;
border: none;
text-align: center;
position: absolute;
border-radius: 0;
box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
display: grid;
grid-template-columns: auto auto auto auto auto;
visibility: hidden;
min-width: 100%;
z-index: 999;
}
.dropdown:hover .dropdown-menu {
visibility: visible;
}
.dropdown-menu.show {
display: flex;
}
.dropdown-menu a:hover {
color: darkgrey;
text-decoration: none;
}
.dropdown-menu li:first-child a {
color: darkgrey;
padding: 20px 0;
}
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="680a07071c1b1c1a0918285d465b465b">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="" role="button" data-bs-toggle="dropdown" aria-expanded="false">Lorem</a>
<div class="dropdown-menu">
<ul>
<li><a class="dropdown-item" href="">Lorem Ipsum</a></li>
<li><a class="dropdown-item" href="">Lorem Ipsum</a></li>
<li><a class="dropdown-item" href="">Lorem Ipsum</a></li>
<li><a class="dropdown-item" href="">Lorem Ipsum</a></li>
<li><a class="dropdown-item" href="">Lorem Ipsum</a></li>
<li><a class="dropdown-item" href="">Lorem Ipsum</a></li>
</ul>
<ul>
<li><a class="dropdown-item" href="">Lorem Ipsum</a></li>
...
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="" role="button" data-bs-toggle="dropdown" aria-expanded="false">Lorem</a>
<!-- More dropdown menu items -->
</li>
</ul>
</div>
</div>
</nav>