poppi89 Posted February 1, 2020 Share Posted February 1, 2020 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. Link to comment Share on other sites More sharing options...
Ingolme Posted February 3, 2020 Share Posted February 3, 2020 It depends on the layout of your page. The link should align the top of the element with the top of the window. You might have more than one element with the same ID or CSS is causing the top of the element to be further down than its visible content. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now