/* #navbar is the topmost element and <main> contains all other content */
#navbar {
/* CSS property ensuring #navbar always stays in the same place even if the page is scrolled: */
position: fixed;
}
main {
/* Ensure the remaining content doesn't hide behind the #navbar: */
position: absolute;
z-index: 1;
top: 100px;
}
Sat Oct 09 2021 11:20:02 GMT+0000 (Coordinated Universal Time)https://www.codecademy.com/practice/tracks/learn-css/modules/learn-css-display-positioning