OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

How to control the anchor landing position

  • Thread starter Thread starter Simon Ferndriger
  • Start date Start date
S

Simon Ferndriger

Guest
We currently have the problem, that links in the form www.example.com/#section don't jump to the right location, because we have a fixed navigation at the top which covers up the first part of the website.

Code:
<div id="anchorpoint">Some content here</div>

How can we tell the browser to jump to the anchor position + 100px?

Thank you.
<p>We currently have the problem, that links in the form <a href="http://www.example.com/#section" rel="noreferrer">www.example.com/#section</a> don't jump to the right location, because we have a fixed navigation at the top which covers up the first part of the website.</p>

<pre><code><div id="anchorpoint">Some content here</div>
</code></pre>

<p><strong>How can we tell the browser to jump to the anchor position + 100px?</strong></p>

<p>Thank you.</p>
Continue reading...
 

Latest posts

I
Replies
0
Views
1
impact christian
I
Top