Giuseppe Accardo
Giuseppe Accardo

Reputation: 21

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"

Upvotes: 0

Views: 116

Answers (1)

afishintaiwan
afishintaiwan

Reputation: 85

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;
  }

Upvotes: 1

Related Questions