Nav bar links to other pages on your personal portfolio in Codepen?

Nav bar links to other pages on your personal portfolio in Codepen?
0

#1

I understand how to create a nav bar but i cant work out how to get each to link to different parts to my codepen.

Hope that makes sense!


#2

Hey Hasan, if I understand correctly, you are trying to jump to parts of your portfolio page when you click on links in your nav bar? One way to do this is by adding an “id” to the element you would like to jump to. So if you have a header on your page like so:
<h1 id="first">Hello</h1>

A link in your navbar might look like this:
<a href="#first">Jump to my first H1</a>

Here’s an article that might help as well: http://blog.hubspot.com/marketing/jump-link-same-page#sm.0001odn8h412y1dajtkksruwu6ixl