Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Feb 2010
    Posts
    223
    Thanks
    25
    Thanked 0 Times in 0 Posts

    Anchor link not going to top of page?

    Sorry, I tried the one place I hadn't and it worked. Seems I had to put the anchor between a div called head_wrap and the img src of the header itself.


    I'm trying to create a 'back to top' link on my tumblr blog here: http://thisisenglandtribute.tumblr.com

    I have my link in place OK (foot of the page, naturally), but clicking it doesn't take you quite to the very top. As you can see when clicking it, it falls short my about 40px or so.

    I have my anchor positioned immediately before the <head> tag in my code, and have tried it in various different positions, but it always falls short of the very top when clicking the link, no matter where I put the anchor.

    I'm on XP, using firefox and the anchor code I'm using is:

    Code:
    <a id="top"></a> as the anchor, and <a href="#top">Top</a> as the link code
    What am I doing wrong please?
    Last edited by OurJud; 05-21-2013 at 02:18 PM.

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,478
    Thanks
    6
    Thanked 981 Times in 954 Posts
    So you solved it? If so then edit your first post (in advanced mode) and select “Resolved” from the select box next to the title field.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •