Bootstrap - navbar scrolling

I've created a navbar using Bootstrap using this . The problem is when I scroll the page and the navbar goes to top because the page jumps in down in the content! Un How can I resolve it?

If you try to a little scroll from here, the page jumps under "Content"

Answers 1

  • I'm guessing you mean that when #nav is fixed to the top, the first bit of the "content" section gets hidden behind it? In that case the quickest fix I can think of would be to put some padding to the top of the content section.

    .content {
      padding-top: 50px;
      }
    

Related Articles