For some unknown reason to me, my navigation bar is blocking the div content.
Below is my example code. How can I fix it so the div
wouldn't be blocked by the sticky navigation bar when I click the button?
<div style="height:90px; border: 1px solid red; background-color: grey; position: fixed; width: 100%;">Navbar</div>
<div id="A">
This text will blocked by sticky navbar
<br/>A<br/><br/><br/><br/><br/>---
</div>
<div id="B">
This text will blocked by sticky navbar
<br/>B<br/><br/><br/><br/><br/>---
</div>
<br/><br/><br/><br/><br/><br/><br/>
<button onClick="document.getElementById('A').scrollIntoView();">A</button>
<button onClick="document.getElementById('B').scrollIntoView();">B</button>