I am facing an issue with shaking when hovering over the link.nav where I have added a border-bottom to display on hover.
<section id="main_header">
<div class="container-fluid mainbar-bg py-1">
<div class="container">
<nav class="navbar navbar-expand-lg navbar-light">
<div class="container-fluid">
<a class="navbar-brand" href="#">Navbar w/ text</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"data-bs-target="#navbarText" aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarText">
<ul class="navbar-nav ml-auto mb-2 mb-lg-0">
<li class="nav-item mx-4 py-4">
<a class="nav-link active" aria-current="page" href="#">Home<br>
<span class="nav-link-down">Main Page</span>
</a>
</li>
<li class="nav-item mx-4 py-4">
<a class="nav-link" href="#">Profile<br>
<span class="nav-link-down">Management</span>
</a>
</li>
<li class="nav-item mx-4 py-4">
<a class="nav-link" href="#">Pricing</a>
</li>
</ul>
</div>
</div>
</nav>
</div>
</div>
</section>
CSS style:
.nav-link-down {
font-size: 0.75rem;
color: #b1b1b1;
}
.nav-link.active {
color: #1f1e2e!important;
}
.nav-link {
color: #1f1e2e!important;
}
.nav-link:hover {
border-bottom: 1px red solid;
}
(Changed the background to dark to highlight a shaking container)