[resolved] Jump to page anchor (4 posts)

  1. jmessick9
    Posted 1 year ago #

    I have several buttons on my home page that link to a page. When the user clicks on the link http://link.com/services/#membership, I need it to goto that elements.

    Below is what I have in my page about 6 different tag's, but it doesn't goto that element.
    <h1 style="text-align: center;" name='membership'>membership</h1>

    Any Ideas on how to achieve this?

  2. Try this instead:

    <h1 style="text-align: center;" id="membership">membership</h1>

    (use id, not name)

  3. jmessick9
    Posted 1 year ago #

    wow, I had tried that before and it did not work, seems to do the trick. Thanks!

  4. You're welcome!

Topic Closed

This topic has been closed to new replies.

About this Topic