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

Internal link not working properly

  • I have an internal links set up on this page:

    debbierking.com/bootstrap/index.php

    The Work and Contact links are working correctly. However, the About link is acting very capricious, especially when clicked on from another page. It usually takes you to the bottom of the section, rather than the top. Or sometimes it takes you the top then drops down to the bottom.

    I have been going round and round on this, trying many different things but am not able to isolate the problem. Any suggestions would be greatly appreciated!

      <ul class="nav pull-right">
          <li class="active work"><a class="#work" href="index.php#work">Work</a></li>
          <li><a class="about" href="index.php#about">About</a></li>
          <li><a class="cont" href="#contact">Contact</a></li>
      </ul>
    

    Here is the markup:

      <div id="about"> 
          <h2>A Bit About Me</h2> 
    
  • Seems to work fine for me! Are you experiencing this in a particular browser?

  • You're right! I failed to check this in Chrome and Safari, where it's working fine. I am having the problem in Firefox.

  • Works fine for me in Firefox 17.0.1 - OS X 10.8.2

    I love your work btw

  • Thank you!! It's been a real pain to code all this in Bootstrap though :(

    I am using FF 18.0 with OS X 10.6.8.

  • What's interesting is that it sometimes goes the About header for just a second and then drops down.

  • Have been googling and see that others have had similar problems in Firefox with internal links, but am not seeing any solution. Have tried so many different things...what is strange is that this only is happening with the About link.

  • I just updated and I'm still not experiencing any problem. What screen size are you viewing at?

    edit// I just shrunk the window up and now I can replicate the problem...

  • So any ideas? I am really stumped on this.