I'm trying to make nav bar with flexbox, and when I add hover with border effect, the other element "moved". That's because the border only appear when hovered. How to make another elements stay in their position? in this case the categories, and the hr lines moved
.navbar{
display: flex;
justify-content: space-between;
align-items: center;
overflow: hidden;
margin-left: 5px;
}
.navbar-menu{
display: flex;
flex-flow: row wrap;
}
.navbar-menu a{
color: inherit;
text-decoration: none;
padding: 8px;
}
.navbar-menu a:hover{
border: 2px solid #e84393;
color: white;
border-radius: 6px;
}