Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
LL24

Anchor to content on the same page does moves down too far

Recommended Posts

Site URL: https://www.chriszforma.com/priorities/

On my page I have 6 images and they have as their URL the jump to the anchor ID found lower on the same page.

However, the jump to the anchor goes past the header that holds the anchor.  it jumps to the middle of the paragraph below the <h3> header that hold the anchor id.

How can I get it to jump to and display the header?

Share this post


Link to post

Remove anchor id in <h3>

<h3 id="education" style="text-align:center;white-space:pre-wrap;">Invest in education and training</h3>

add Code Block above h3, & use this code

<span id="education"></span>

Repeat for other 6 headings


You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan. I work for a non-profit project (build free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. There are so many questions every day so I can't answer them all at once, I will try to answer them in the next few days.

Share this post


Link to post

thank you, but this is my finding after following your tip.  It is a little better but not exact.  Plus it added extra white space by adding a new code block. 

Share this post


Link to post

You can use CSS to remove extra space.


You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan. I work for a non-profit project (build free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. There are so many questions every day so I can't answer them all at once, I will try to answer them in the next few days.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...