I am writing here because I am pretty stuck with this issue in my website
I have a quite straightforward one page layout with 5 sections and a nav bar with linksĀ to sections. I have managed to put links to the sections, but when I click on those links it does not bring me to the section title but somewhere in the section, near its bottom.
The code I am using is the following:
<a class="dropdown-item" href="#DF">
where #DF is the id of the section.
Do you know a way to link exactly at the section title?
How to put link exactly at the section title
in HTML/XHTML
Posted
Dear all,
I am writing here because I am pretty stuck with this issue in my website
I have a quite straightforward one page layout with 5 sections and a nav bar with linksĀ to sections. I have managed to put links to the sections, but when I click on those links it does not bring me to the section title but somewhere in the section, near its bottom.
The code I am using is the following:
<a class="dropdown-item" href="#DF">
where #DF is the id of the section.
Do you know a way to link exactly at the section title?
Your help is kindly appreciated.
Thank you very much.