This link contains a code to make HTML dropdown lists.
https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_dropdown_navbar
However, if I want to make the bar header and fix its position by modifying the following
.navbar {
overflow: hidden;
background-color: #333;
}
to
.navbar {
overflow: hidden;
background-color: #333;
position: fixed;
top: 0;
}
it won't work again. Please help me to fix this issue.
CodePudding user response:
Remove overflow: hidden;
from the .navbar