I am using Bootstrap4 with a nav bar with fixed-top, and made the adjustment of adding padding-top to the body tag so that the fixed-top does not obscure content. This works however, my links are just to sections on the same page and when I click on link the padding is ignored and I am taken to the wrong place, how do I resolve this.
<body style="padding-top: 100px;">
<header>
<div class="container-fluid fixed-top bg-dark">
<div>
<div class="navbar navbar-expand-lg navbar-dark bg-dark container">
<div class="navbar-nav">
<a class="nav-item nav-link" href="#webserviceSection">
Webservice
</a>
<a class="nav-item nav-link" href="#artistHelpSection">
Artist Search
</a>
<a class="nav-item nav-link" href="#releaseHelpSection">
Release Search
</a>
<a class="nav-item nav-link" href="#xmlSchemaSection">
Xml schema
</a>
<a class="nav-item nav-link" href="#searchClientSection">
Java Search Client
</a>
</div>
</div>
</div>
</div>
</header>
<main>
<div class="container" id="webserviceSection">
............