R
Reactiflux

help-threads-react

✅ – Sorrow – 05-12 Jan 29

SSorrow1/29/2023
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?
Solution:
Nvm seems like I need to set a padding-top property to fix this!
Jump to solution
Solution
SSorrow1/29/2023
Nvm seems like I need to set a padding-top property to fix this!
UUUnknown User1/29/2023
3 Messages Not Public
Sign In & Join Server To View

Looking for more? Join the community!

R
Reactiflux

help-threads-react

Join Server