Nav bar directory

Hi guys I’m new to to HTML AND CSS and wanting to try something where If I click “About me” it will directly scroll down to the designated path Would appreciate much for your help

If you want it to jump directly, all you need is an a href="#[id]" for the link and a section id="[id]" to jump to. You might also want some CSS styling to offset the nav bar height [demo].

If you want smooth scroll, you’ll also need JavaScript (edit: also added to demo; uncomment to see the difference).

1 Like