After successfully implementing buttons to jump to different sections of my page using IDs like this:
<button id="niftyBtn"><a href="#nifty">Things</a></button></br>
<div id="nifty">Blah</div>
I'm facing an issue where the top of the sections are going behind a fixed navbar that I can't modify, instead of appearing below it. I've tried various jQuery solutions involving .offset() but haven't found an effective one yet. Any suggestions would be greatly appreciated.
Note: The behavior remains the same whether I use jQuery or JavaScript to navigate to the sections instead of using href tags.