In Navbar, One element is affecting other elements when hovering that element.
Like when I am hovering on that element, that element gets border around it and its shifting other elements of the navbar.
.navbar{
height: 10vh;
width:100vw;
display: flex;
justify-content: space-between;
background-color: #FF4858;
}
.logo{
/* border:1px solid black; */
font-size: 5vh;
margin:auto 2vw;
font-weight: bold;
}
ul{
list-style: none;
display: flex;
/* border:1px solid black; */
justify-content: center;
align-items: center;
width:50%;
/* justify-content: space-around; */
}
li{
padding:10px;
margin:0px 3vw;
border:none;
}
li:hover{
color:white;
border:1px solid white;
border-radius: 6px;
}
<nav class="navbar">
<div class="logo">VC( Just Getting Started )</div>
<ul>
<a href="#"><li>Home</li></a>
<a href="#"><li>Contact Us</li></a>
<a href="#"><li>About Us</li></a>
<a href="#"><li>More</li></a>
</ul>
</nav>