# Activating Bootstrap navbar scrollspy

**URL:** <https://forum.freecodecamp.org/t/activating-bootstrap-navbar-scrollspy/72711>\
**Category:** General\
**Created:** [January 5, 2017, 3:21am UTC](https://forum.freecodecamp.org/t/activating-bootstrap-navbar-scrollspy/72711 "2017-01-05T03:21:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LuisSousaRego](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/luissousarego/32/65272_2.png) [@LuisSousaRego](https://forum.freecodecamp.org/u/LuisSousaRego)\
**Post date:** [January 5, 2017, 3:21am UTC](https://forum.freecodecamp.org/t/activating-bootstrap-navbar-scrollspy/72711/1 "2017-01-05T03:21:55Z")

</div>

Hello, so I am making my personal portfolio and I can’t figure out how to make my navbar items “active” while I am scrolling that page, furthermore when I click them they don’t send me to the top of the div element, it’s always a few pixels below, I tried to use the data-offset to correct it but it doesn’t seem to make any difference. I already checked a few examples where the navbar elements properly “activate” and I can’t find where the difference is.

here is the [codepen.io](http://codepen.io) link [http://codepen.io/luissousarego/pen/YNzPbK?editors=1000](http://codepen.io/luissousarego/pen/YNzPbK?editors=1000)

thank you

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 16, 2021, 5:08pm UTC](https://forum.freecodecamp.org/t/activating-bootstrap-navbar-scrollspy/72711/2 "2021-01-16T17:08:18Z")

</div>

Closed on January 16, 2021, 5:08pm UTC


