Create responsive layouts quickly with Bootstrap grid, utilities, components, and theming.
Lessons
Highlight nav links based on scroll position.
Scrollspy is easiest to learn by reading the example, changing it, and observing the result.
<ul class="nav nav-tabs" role="tablist">
<li class="nav-item" role="presentation">
<button class="nav-link active" data-bs-toggle="tab" data-bs-target="#overview" type="button" role="tab">Overview</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" data-bs-toggle="tab" data-bs-target="#details" type="button" role="tab">Details</button>
</li>
</ul>
<div class="tab-content pt-3">
<div class="tab-pane fade show active" id="overview" role="tabpanel">Overview content.</div>
<div class="tab-pane fade" id="details" role="tabpanel">Details content.</div>
</div>Practice the Scrollspy example in a small scratch file, then explain what changed and why.