offsetting an html anchor to adjust for fixed header
I don't see any errors, but also when i open a new browser and paste the url with the anchor it doesnt offset the page. Lets see how to Perform this task by using different approaches: Approach 1: Javascript approach: It is commonly used for offsetting an anchor to adjust for the fixed header. I ran into this same issue and ended up handling the click events manually, like: Site design / logo 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA.