My website has a fixed menu. However, I noticed that if the browser size is small, the menu shifts left by -130px instead of -20px. Can anyone help me understand why this might be happening?
#nav {
left: -20px;
list-style: none;
margin: 0;
position: fixed;
top:0;
margin-top:415px;
z-index:99;
}
@media screen and (max-width: 600px){
#nav {
left: -130px;
list-style: none;
margin: 0;
position: fixed;
top:0;
margin-top:415px;
z-index:99;
}
}