Bootstrap: How to navbar fixed ?
How to navbar fixed at top using bootstrap3
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rajesh GamiRank #30 · 41.5K reputationPosted Jul 3, 2018, 6:32 PM EDT
class
="nav navbar-nav">Fixed Navbar
A fixed navigation bar stays visible in a fixed position (top or bottom) independent of the page scroll.
A fixed navigation bar stays visible in a fixed position (top or bottom) independent of the page scroll.
A fixed navigation bar stays visible in a fixed position (top or bottom) independent of the page scroll.
A fixed navigation bar stays visible in a fixed position (top or bottom) independent of the page scroll.
A fixed navigation bar stays visible in a fixed position (top or bottom) independent of the page scroll.
A fixed navigation bar stays visible in a fixed position (top or bottom) independent of the page scroll.
Scroll this page to see the effect
Bootstrap Affix Example
Fixed (sticky) navbar on scroll
Scroll this page to see how the navbar behaves with data-spy="affix".
The navbar is attached to the top of the page after you have scrolled a specified amount of pixels.
class
="nav navbar-nav">Some text to enable scrolling
Some text to enable scrolling
Some text to enable scrolling
Some text to enable scrolling
Some text to enable scrolling
Some text to enable scrolling
Some text to enable scrolling
Some text to enable scrolling
Some text to enable scrolling
Some text to enable scrolling
Some text to enable scrolling
Purvi Barot166 reputationPosted Mar 20, 2019, 3:17 AM EDT