I have the following code snippet to display 3 links side by side:
<div class="col-xl-9 col-lg-9">
<div class="main-menu d-none d-lg-block">
<nav>
<ul id="navigation">
<li><a class="movement" href=@customurl style="@Html.IsSelected(actions: "Index", controllers: "Home")">home</a></li>
<li><a class="movement" style="@Html.IsSelected(actions: "FAQ", controllers: "Home")" href="@(customurl+ "home/faq/")">FAQ</a></li>
<li><a class="movement" style="@Html.IsSelected(actions: "Contact", controllers: "Home" )" href="@(customurl+ "home/Contact/")">Contact</a></li>
</ul>
</nav>
</div>
</div>
Additionally, I have implemented a JavaScript function to increase the font size of a link when hovered over.
$(document).ready(function () {
//window.location.replace("https://vytalizehealth.com/");
$(function () {
$(".movement").hover(
function () {
$(this).css("fontSize", "20px");
},
function () {
$(this).css("fontSize", "16.5px");
})
}); });
However, an issue arises where expanding the text when hovering causes neighboring links to shift horizontally. How can I enlarge the hovered link's text without affecting the alignment of other links?