I’m using :hover to add more flavor to my project yet I’m lost as to how I might be able to remove this small white line at the top. I have tried adding padding to the top to increase my hover area yet this does not work. I suspect something with the border area but I have no clue.
My styles.css so far:(Problem I’m having is at #navbar li:hover)
html {
scroll-behavior: smooth;
font-size: 1.2rem;
line-height: 1.5;
font-family: Palatino
}
#navbar {
position: fixed;
border-style: outset;
width: 300px;
height: 100%;
top: 0px;
left: 0px;
border-bottom: 0px;
border-left: 0px;
border-top: 0px;
}
#navbar header {
font-size: 2rem;
padding-left: 5px;
}
#navbar li {
margin-left: -40;
list-style-type: none;
border-style: groove;
border-left: 0px;
padding-left: 5px;
border-right: 0px;
border-bottom: 0px;
padding-bottom: 1.5rem;
}
#navbar li a {
color: black;
text-decoration: none;
}
#navbar li:hover{
background-color: grey;
cursor:pointer;
}
.nav-link {
font-size: 1.5rem;
}
#main-doc {
display: absolute;
margin-left: 310px;
padding: 25px 50px;
}
#main-doc header {
font-weight: bold;
font-size: 1.7rem;
}
code {
display: block;
text-align: left;
white-space: pre-line;
position: relative;
word-break: normal;
word-wrap: normal;
line-height: 2;
background-color: #f7f7f7;
padding: 15px;
margin: 10px;
border-radius: 5px;
}