css fixed scroll on click anchor code example
Example 1: offset anchor tag when scrolling
a.anchor {
display: block;
position: relative;
top: -250px;
visibility: hidden;
}
Example 2: offset anchor tag when scrolling
<a class="anchor" id="top"></a>