I'm facing an issue with my navbar setup:
<ul class="dropdown-menu" role="menu">
<li><a href="/main_page#top_something">People</a></li>
<li><a href="/main_page">Main Page</a></li>
</ul>
Whenever I click on the "People" link, it doesn't position correctly due to some charts being loaded on that page. The sections have unique IDs and their content is generated through JavaScript (charts).
<section id="top_something">
<div class= "container">
<h2 class="blue-headings text-center"><b>Top People</b></h2>
<div id="div_something"></div>
</div>
<br>
</section>
The content inside the div with id "div_something" is created using JavaScript... I have around 10 similar divs like this on the main_page with unique IDs. When I click on a link with href="/main_page#top_something" in the navbar, it does take me to that section initially, but when the JavaScript loads, it shifts me upwards.
Thank you in advance!