;#scrollspyTabsSection2&quot;&gt;Second&lt;/a&gt;
  &lt;/li&gt;
  &lt;li class=&quot;nav-item&quot; &gt;
    &lt;a class=&quot;nav-link&quot; href=&quot;#scrollspyTabsSection3&quot;&gt;Third&lt;/a&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;!-- Scrollable container with anchors --&gt;
&lt;div class=&quot;overflow-auto px-2&quot; data-bs-spy=&quot;scroll&quot; data-bs-target=&quot;#scrollspyTabs&quot; data-bs-root-margin=&quot;0px 0px -40%&quot; data-bs-smooth-scroll=&quot;true&quot; style=&quot;max-height: 120px&quo