Design Fixed Nav Bar: Steps & Tips to Create One

  • Thread starter Thread starter Dave Ritche
  • Start date Start date
AI Thread Summary
To create a navigation bar that remains fixed at the top of a webpage during scrolling, utilizing Bootstrap.js is recommended, as it offers built-in examples for fixed navigation bars. While some users inquire about achieving this solely with CSS and HTML, it is generally acknowledged that JavaScript is necessary for this functionality. Bootstrap is praised for its ease of use, providing consistent design across browsers and helpful tutorials. Users are encouraged to explore these resources, particularly the tutorials linked to Bootstrap's documentation, to enhance their understanding and implementation of fixed navigation bars.
Dave Ritche
Messages
70
Reaction score
6
Hello everyone..
I was thinking about designing a navigation bar that would stay at the top of the body whenever the webpage is scrolled down.how can i do that?please help...
Thanks in advance..
 
Technology news on Phys.org
Dave Ritche said:
Hello everyone..
I was thinking about designing a navigation bar that would stay at the top of the body whenever the webpage is scrolled down.how can i do that?please help...
Thanks in advance..
Have you looked at bootstrap.js? Take a look at the examples (http://getbootstrap.com/getting-started/#examples). They have a fixed nav bar example.
 
  • Like
Likes Dave Ritche
Borg said:
Have you looked at bootstrap.js? Take a look at the examples (http://getbootstrap.com/getting-started/#examples). They have a static nav bar example.
Thanks but is it possible to do it only with Css and HTML?
 
Dave Ritche said:
Thanks but is it possible to do it only with Css and HTML?
I haven't tried but I would think that you would need some javascript to get it to stay in place. If you haven't worked with javascript, the examples are mostly cut and paste.
 
Thanks...i would try'em..
 
  • Like
Likes Borg
Dave Ritche said:
Thanks...i would try'em..
Good luck. I've been working with the library and it's not too difficult. It's a good library to easily build pages that look the same across multiple browsers without having to code it yourself. The tutorials that I've seen are pretty good also.
 
Thanks.
Can you tell me more about library and it's tutorials?
 
Dave Ritche said:
Thanks.
Can you tell me more about library and it's tutorials?
I watched this tutorial and found it very helpful. As you watch the tutorial, he references the getbootstrap.com page and how to work with the docs and examples. By the end, you should be feeling like a whole world has opened in front of you. :smile:

 
Thanks..
 

Similar threads

Back
Top