Is there a way to prevent other links in the navbar from moving up slightly when hovering over one link and creating a line (border bottom)?
`
.n24{
margin-top: 2px;
padding: 14px 14px;
}
.n25{
margin-top: 2px;
padding: 14px 14px;
}
.n26{
margin-top: 2px;
padding: 14px 14px;
}
.n09{
margin-top: 2px;
padding: 14px 14px;
}
.n24:hover{
border-bottom: #00b3ee 5px solid;
margin-top: 7px;
}
.n25:hover{
border-bottom: #00b3ee 5px solid;
margin-top: 7px;
}
.n26:hover{
border-bottom: #00b3ee 5px solid;
margin-top: 7px;
}
.n09:hover{
border-bottom: #00b3ee 5px solid;
margin-top: 7px;
}
<nav class="navbar navbar-expand-lg navbar-dark fixed-top">
<a class="navbar-brand" href="#"><img src="img.png"></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavDropdown">
<ul class="navbar-nav ml-auto">
<li class="nav-item active">
<a class="nav-link n22" href="#" style="color: black; font-weight: bold; font-size: 15px">HOME<span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link n23" href="#" style="color: black; font-weight: bold; font-size: 15px">ABOUT US</a>
</li>
<li class="nav-item">
<a class="nav-link n24" href="#" style="color: black; font-weight: bold; font-size: 15px">OUR SERVICES</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link n25" href="index7.html" style="color: black; font-weight: bold; font-size: 15px">
JOBS
</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link n09" href="#" style="color: black; font-weight: bold; font-size: 15px">
CONTACT US
</a>
</li>
</ul>
</div>
</nav>