# \[Solved\] Personal Portfolio Webpage- Scrolling and Nav button help

**URL:** <https://forum.freecodecamp.org/t/solved-personal-portfolio-webpage-scrolling-and-nav-button-help/71746>\
**Category:** General\
**Created:** [January 2, 2017, 10:16pm UTC](https://forum.freecodecamp.org/t/solved-personal-portfolio-webpage-scrolling-and-nav-button-help/71746 "2017-01-02T22:16:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kbakermemphis](https://avatars.discourse-cdn.com/v4/letter/k/e19b73/32.png) [@kbakermemphis](https://forum.freecodecamp.org/u/kbakermemphis)\
**Post date:** [January 2, 2017, 10:16pm UTC](https://forum.freecodecamp.org/t/solved-personal-portfolio-webpage-scrolling-and-nav-button-help/71746/1 "2017-01-02T22:16:53Z")

</div>

I can’t find a decent how to to make the nav buttons scroll to the href smoothly instead of jumping right to it. The examples I’ve found are way beyond my abilities now and I don’t want to just copy and paste just to finish the assignment.

The Contact nav button doesn’t work and I cannot figure out why. It looks the same as the other buttons!

And lastly, is there a way to get the href to go to a specific part of the page, right now it loads the section in the middle not at the beginning of the section. I.e. when the nav button for portfolio is clicked in loads the middle of the section instead of the start

[http://codepen.io/kbakermemphis/pen/EZYWbp](http://codepen.io/kbakermemphis/pen/EZYWbp)

---

<div class="post-metadata">

**Author:** ![PortableStick](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/portablestick/32/65591_2.png) [@PortableStick](https://forum.freecodecamp.org/u/PortableStick)\
**Post date:** [January 2, 2017, 10:51pm UTC](https://forum.freecodecamp.org/t/solved-personal-portfolio-webpage-scrolling-and-nav-button-help/71746/2 "2017-01-02T22:51:33Z")

</div>

There’s a [smooth scroll](https://github.com/kswedberg/jquery-smooth-scroll) plugin for jQuery, which is extremely easy to use. If you don’t want to or can’t add that just yet, I’d suggest waiting until you’ve done the first few JavaScript projects.

---

<div class="post-metadata">

**Author:** ![hackmasterS](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/hackmasters/32/32165_2.png) [@hackmasterS](https://forum.freecodecamp.org/u/hackmasterS)\
**Post date:** [January 2, 2017, 10:54pm UTC](https://forum.freecodecamp.org/t/solved-personal-portfolio-webpage-scrolling-and-nav-button-help/71746/3 "2017-01-02T22:54:13Z")

</div>

**Smooth Scrolling:** I personally like the jQuery implementation. It will target all anchors with the hash symbol in them. See the link below:

> **[Smooth Scrolling | CSS-Tricks](https://css-tricks.com/snippets/jquery/smooth-scrolling/)**
>
> Native browser smooth scrolling is like this: // Scroll to specific values // scrollTo is the same window.scroll({ top: 2500, left: 0, behavior: 'smooth' }); // Scroll certain amounts from current position window.scrollBy({ top: 100, // could be...

**Contact Nav** : You have the contact content outside of the main col-md-12 wrapper. The anchor for page3-link and its content needs to be moved up into the same div container as page1-link and page2-link.

**Jump to Content** : The reason for this is that your header is fixed and actually covers up the content as it jumps to position 0 (the very top of the page)…so it gives you the appearance that the content is loading in the middle. To fix this you can add an inline style like `style="padding-top:200px;"` to offset for the fixed header on each of your page1, page2, page3 divs

---

<div class="post-metadata">

**Author:** ![kbakermemphis](https://avatars.discourse-cdn.com/v4/letter/k/e19b73/32.png) [@kbakermemphis](https://forum.freecodecamp.org/u/kbakermemphis)\
**Post date:** [January 2, 2017, 11:01pm UTC](https://forum.freecodecamp.org/t/solved-personal-portfolio-webpage-scrolling-and-nav-button-help/71746/4 "2017-01-02T23:01:38Z")

</div>

@hackmasterS @PortableStick You guys are awesome. Thanks so much!

_edit_ One last thing, how do I mark this post as solved?

---

<div class="post-metadata">

**Author:** ![PortableStick](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/portablestick/32/65591_2.png) [@PortableStick](https://forum.freecodecamp.org/u/PortableStick)\
**Post date:** [January 2, 2017, 11:16pm UTC](https://forum.freecodecamp.org/t/solved-personal-portfolio-webpage-scrolling-and-nav-button-help/71746/5 "2017-01-02T23:16:10Z")

</div>

You can edit the post title if you want. It’s not required, though.

---

<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/solved-personal-portfolio-webpage-scrolling-and-nav-button-help/71746/6 "2021-01-16T17:08:08Z")

</div>

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


