I'm having an issue with my navbar where the top and bottom sections get enlarged when hovered over. I've tried setting the height to 100px, but it doesn't seem to make a difference.
#navbar {
display: flex;
justify-content: space-between;
}
.nav {
margin: 1px auto;
padding: 2px 6px;
}
.nav:hover {
background-color: #84a98c;
}
<div id="navbar">
<div class="nav">
<h3>Home</h3>
</div>
<div class="nav">
<h3>About</h3>
</div>
<div class="nav">
<h3>Tools</h3>
</div>
<div class="nav">
<h3>Contact</h3>
</div>
</div>