I want to move to a specific section on click, and I am doing that using <a name="updates"></a>
and <a href="#updates">Updates</a>
. However, when I move to that section, the title of the section is not visible since it is hidden by the persistent header with z-index: 99
(so it is always above all the other content). I would like to move a few pixels up so the title is visible when I click to move to that section.
I tried positioning the <a name="updates"></a>
in a div that is rendered before the updates div, but that is not the proper solution, and makes the code confusing to read.
// Moving here
<a name="updates"></a>
...
// Link used to move there
<a href="#updates">Updates</a>