treehouse : what would you like to learn today?
Web Design Web Development iOS Development

[Solved] Go to bottom of index page clicking on link in another page

  • Hi folks.
    Currently I have this bread crumb nav. and by clicking on home it gets me to the bottom of the index page.



    What I would like to achieve is to go little higher on index page where my h2 tag starts and have that h2 tag text at top of the browser view port.
    Thank you.
  • On your index page:

    <h2 id="assemblies">Wire Rope Assemblies</h2>
    Then point the link to:

    <a href="index.php#assemblies">go to wire rope assemblies</a></pre>
  • That's it. Great. Thank you.
    In order for the html code to appear as I typed, do I have to comment it out or how is it done like in your answer to show the code. That was my first post.
    Frequent visitor for long time tho.
  • <ul class="box2">
    <li><a href="index.html#footer">&#9658; home</a></li>
    <li><a class="active" href="#">wire rope assemblies</a></li>
    </ul>
  • Ok, I learned how to post the code next time. Thanks.