Hello, I'm currently working on developing a new portfolio template that features a list on the left side to guide users through different sections of the page. Utilizing Scrollspy in Bootstrap 5.2.3 has been helpful so far, but I've noticed that the side list includes some excess padding by default. This extra space is creating unnecessary distance between the list and the content on larger pages. Does anyone have suggestions on how I can address this issue? For reference, you can view my code on my Pen (the large grey box at the top serves as a placeholder for an image).
Thank you in advance for your help.
https://codepen.io/rachelmax/pen/MWBQzMd
.nav-link {
line-height: 3;
color: #737373;
margin: 0;
border: 0;
}
.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
border-bottom-right-radius: 10;
border-bottom-left-radius: 0;
border-top-left-radius: 0;
color: #DF00F5;
background-color: #ebebeb;
}
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Testing Code 5</title>
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f2909d9d868186809382b2c7dcc0dcc1">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
</head>
<body>
<div class="pt-5" style="height:500px; background:grey;">
</div>
<div class="container-12">
<div class="row">
<div class="col-3">
<nav id="navbar-example3" class="h-100 pe-5">
<nav class="nav nav-pills flex-column sticky-top">
<a class="nav-link" href="#item-1">Problem</a>
<a class="nav-link" href="#item-2">Team & Role</a>
<a class="nav-link" href="#item-3">Research</a>
<a class="nav-link" href="#item-4">Iterations</a>
<a class="nav-link" href="#item-5">Results</a>
</nav>
</nav>
</div>
<div class="col-8 mt-4">
<div data-bs-spy="scroll" data-bs-target="#navbar-example3" data-bs-smooth-scroll="true" class="scrollspy-example-2" tabindex="0">
<div id="item-1">
<h5>Item 1</h5>
<p>....</p>
</div>
<div id="item-2">
<h4>Item 2</h4>
<p>....</p>
</div>
<div id="item-3">
<h4>Item 3</h4>
<p>....</p>
</div>
<div id="item-4">
<h4>Item 4</h4>
<p>....</p>
</div>
<div id="item-5">
<h4>Item 5</h4>
<p>....</p>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="72101d1d06010600130232475c405c41">[email protected]</a>/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
</body>
</html>