Posted By

kennonb on 08/27/11


links anchor to hash go

Versions (?)

Hash Anchor Links

 / Published in: HTML

  • Basically, place the div at the top of the page (or wherever you want the link to jump to).
  • Then place the link somewhere on the page.
  • This will cause the scroll to shift to the top of the div container with that ID attribute.
  1. <div id="top">Some text.</div>
  3. <a href="#top">Go to top of page</a>

Report this snippet  

You need to login to post a comment.