I have one open issue with this, the one point I cannot get is:
Your #navbar
element should always be at the top of the viewport.
I have the following part in my CSS code:
body {
font-family: ‘Roboto’, roboto;
line-height: 1.5;
text-align: center;
background-color: #2f365a;
color: white;
}
img {
width: 100%;
height: auto;
}
header {
color: white;
position: fixed;
}
#navbar {
background-color:lightblue;
display: flex;
width: 100%;
position: fixed;
}
#navbar ul {
list-style: none;
display: flex;
}
#navbar ul a {
display: flex;
padding: 1.2rem 5rem;
text-decoration: none;
color: #fff;
font-size: 1.4rem;
font-weight: 500;
align-items: center;
}