I am creating a one page site. The navigation uses anchor links to scroll to different sections on the page. I have the anchor links scrolling to the exact position I want them to. Since you can’t control this natively, I have added a blank div with a height of 0 px. and relative positioning. Then pushed it -80 pixels up the page. I then set that as the section ID that I will link my nav link to. Basically I am hacking the anchor links to start 80 pixels above where they normally would. The trouble is that since my section ID is set to a section with 0px height, the current state does not activate. So I cannot style the active state of the links in my navigation.
- Does this make sense
- Can you think of a fix
Thanks!!
Here is my public share link: Webflow - Uniform Strategy