Hi, I'm trying to program a navbar that scrolls with the user. This component has buttons that onclick scrolls to a specific section of the webpage. I accomplished this effect by giving by navbar a sticky position property, but how I find that when use the navbar to scroll to a specific part of the website, the scroll isn't perfect, where the navbar covers content. (This is the effect: https://medium.com/how-to-react/scroll-to-an-element-on-click-in-react-js-8424e478bb9) How do I make it so that the navbar scrolls to the correct location where I want it to scroll?
Nvm seems like I need to set a padding-top property to fix this!