javascript how to move the navigation bar to the top code example
Example: css sticky navigatiojn
nav {
position:sticky;
top:0;
}
/*Top can be replaced with bottom, left, or right
depending on what you want :) */
nav {
position:sticky;
top:0;
}
/*Top can be replaced with bottom, left, or right
depending on what you want :) */