[ARCHIVED] Anchor links not scrolling up - HTML question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all!
I have a question about anchor links. I have a grammar page that has a lot of subheadings. In the first part of the page, there are headlines with links to the specific section below. That works fine.
Then I need to link to those sections and sometimes it works, the page scrolls up and I get my correct headline on top of the page. But sometimes (about 50/50) it stays on the bottom of the page, ie the headline doesn't scroll up.
I have checked my code and it is identical to my eyes. Please help!
The referring page code:
<p>
<a href="/courses/110/pages/verbs#3.2.2"></a> (I have tried taking this away. No change)
<a href="/courses/110/pages/verbs#reginf" target="_blank" rel="noopener">Infinitive</a>
</p>
<p>
<a href="/courses/110/pages/verbs#3.2.3"></a>
<a href="/courses/110/pages/verbs#auxver" target="_blank" rel="noopener">Auxiliary verbs</a>
</p>
The grammar page code:
<p>
<a href="/courses/110/pages/verbs#3.2.2"></a>
<a href="/courses/110/pages/verbs#reginf" target="_blank" rel="noopener">Infinitive</a>
</p>
<p>
<a href="/courses/110/pages/verbs#3.2.3"></a>
<a href="/courses/110/pages/verbs#auxver" target="_blank" rel="noopener">Auxiliary verbs</a>
</p>
The first link scrolls up, the second doesn't.
And sometimes the first link doesn't scroll up either...
Should I just give up?