I'm creating a page using Bootstrap and would like to put some anchors in specific places, as the page has very little content, the element that represents the anchor does not go to the top when I click the link that redirects to it, the example below produces exactly what happens.
.div-margin {
margin-top: 80px
}
<a href="#l1">Ir para l1</a><br/>
<a href="#l2">Ir para l2</a><br/>
<a href="#l3">Ir para l3</a><br/>
<div id="l1" class="div-margin"><p>Você está na div-l1</p></div>
<div id="l2" class="div-margin"><p>Você está na div-l2</p></div>
<div id="l3" class="div-margin"><p>Você está na div-l3</p></div>
In this example only You're on div-l1 is at the top of the page when I click Go to l1 , the other two do not work in a similar way, which do so that both work in the same way, that is, they are at the top of the page when I click on the corresponding link?