Results 1 to 6 of 6

Thread: Problem when linking to an anchor

  1. #1
    Join Date
    Mar 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Problem when linking to an anchor

    Hi there,

    On one page of my website i've got an anchored link, when I click the link it cuts to the anchored text which is good, however it also cuts off the top half of the website, and prevents me scrolling up back to the top. It's hard to explain without showing you what I mean, so here is the page link:

    http://www.paid2review.co.uk/moneyarticles.html

    Try clicking the article titles on the page and see what happens.


    I would really appreciate any help offered
    Thanks. Matt

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Try instead of using

    Code:
    <a id="article-name-here">
    use

    Code:
    <a name="article-name-here">
    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Mar 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I've tried this and it is still doing the same, thanks for trying to help though.

    Any other ideas anyone?


    Matt

  4. #4
    Join Date
    Mar 2007
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Actually this is really weird i have never seen anything like this. Your code seems okay. It could be some kind of javascript i guess. Anyway i'll keep you updated if i find a solution.

  5. #5
    Join Date
    Mar 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks a lot. I don't think its Javascript though, there shouldn't be any on the page

    If I were to check my CSS file is there anything inparticular I should look for, incase its affecting the link on the site?

    Matt

  6. #6
    Join Date
    Mar 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Fixed it now, thanks for the help. The css file was affecting the links.


    Thanks

Bookmarks

Posting Permissions

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