Hi i would like to know how to keep my nav bar stagnenet while scrolling down my web page?

Tell us what’s happening:

Hi i would like to know how to keep my nav bar stagnenet while scrolling down my web page?

Your code so far


// Example
var ourArray = ["Stimpson", "J", "cat"];
ourArray.shift(); // ourArray now equals ["J", "cat"]
ourArray.unshift("Happy"); 
// ourArray now equals ["Happy", "J", "cat"]

// Setup
var myArray = [["John", 23], ["dog", 3]];
myArray.shift();

// Only change code below this line.


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/manipulate-arrays-with-unshift

Your code seems to be for a completely different thing than your question… maybe you should post the code you have for that navbar, your codepen or something

Or do you have a question for that challenge?