Whenever I hover over text I want it to have a bottom border. However, I also get my text moved upwards. Maybe any suggestions? Image before is incorrect position and image after is lifted a bit. I know you can't see it from screenshots. However, I do not know how to upload a video.
.pages {
width: 370px;
font-family: 'Heebo', sans-serif;
font-size: 18.5px;
display: inline-flex;
flex-direction: row;
margin: auto 0px auto 0px;
justify-content: space-between;
padding: 0px 24px 22px 0px;
}
.pages :hover {
cursor: pointer;
border-bottom: 1px solid black;
padding-bottom: 1px;
}
<div class="pages">
<a id="Gallery">Gallery Walls</a>
<a id="Contact">Contact</a>
<i class="fab fa-instagram" id="icon"></i>
<i class="fas fa-store" id="icon"></i>
</div>
<div>
Page content
</div