This question already has an answer here:
- How do I add a data-offset to a Bootstrap 4 fixed-top responsive navbar? 2 answers
- Fixed position navbar obscures anchors [duplicate]
- Bootstrap Navbar (along with topbar) anchor tag navigates content behind the navbar 1 answer
So I have a sticky navbar with a dropdown that allows me to jump to different sections of my page. However, when I jump to a different section, the navbar covers the start of the div I jump to. I checked the navbar, and it has a height of 58 with padding and everything. How do I offset the jump by 58 pixels so that the div is flush with the sticky top and not blocking the header that starts the div?
For example below, here's my website with
And when I click "Education", it cuts off the header saying education and isn't flush with my navbar
.