I'm currently working on a webpage that includes a link to an anchor, which should be a straightforward case.
The link code looks something like this:
<a href="#target">Link</a>
And the anchor code looks like this:
<a name="target">Anchor</a>
When I click on the Link, the page successfully scrolls down to the Anchor: Good. However, the vertical scrollbar doesn't seem to adjust with the scroll and remains at the top: Not Good.
Essentially, once I've clicked the link and scrolled down, there's no way to easily get back up to the top using the scrollbar.
I suspect jQuery may be causing some unintended side effects on this webpage, even though it's not being used for this particular function. I'm unsure how to identify and troubleshoot these issues.
Additionally, CSS might also be contributing to the problem.
If anyone has any suggestions on how to debug this issue, I would greatly appreciate it!
Cheers!
Yann