Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To make the HTML anchor link jump further, you can add an offset value to the anchor link. This is achieved by adding a negative margin to the element that you want the page to scroll to when the anchor link is clicked.

For example, if you have an anchor link to a section with the ID "section2" and you want to jump 50 pixels further down the page to that section, you can add the following CSS code:

section2 {

margin-top: -50px; }

This will make the page scroll 50 pixels further down when the anchor link to that section is clicked. Adjust the margin value to the desired distance you want to jump.