0

I'm facing a problem how to make a link that moves me to the part of page while taking a navbar height in advance? Since navbar is fixed to top with solid color it then covers part of div.

I simply do

<a href="#foo1">Right link 1</a>
...
<section id="foo1">

which brings me there but looks like this

and I wants this

Navbar is 64px height and I literally want that link to bring me to #foo1 - 64px

maelyss
  • 7
  • 5

1 Answers1

0

I figured it out after more googling.

Made a javascript for scrolling effect (which looks better than just jump to position) and added offset More info here:

jQuery scroll to anchor (minus set amount of pixels)

maelyss
  • 7
  • 5