Click here to Skip to main content
15,886,258 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
When clicking the button the page is supposed to scroll to a specified heading on the page. But when clicked the heading itself gets hidden only the paragraph under it is visible there.
The image of the problem = Click here[^]
What I want it too be = Click here[^]

What I have tried:

The button in th menu bar:
<li><a href="#development">Development</a></li>


The header:
<h2 class="page-header" id="development">Development</h2>
Posted
Updated 19-Oct-20 5:01am

1 solution

Try this CSS:
CSS
h2{
position:absolute;
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900