Log in

View Full Version : Problem when linking to an anchor



paid2review
03-21-2007, 02:33 PM
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

thetestingsite
03-21-2007, 02:54 PM
Try instead of using


<a id="article-name-here">

use


<a name="article-name-here">

Hope this helps.

paid2review
03-21-2007, 04:07 PM
I've tried this and it is still doing the same, thanks for trying to help though.

Any other ideas anyone?


Matt

Sparaker
03-21-2007, 04:28 PM
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. ;)

paid2review
03-21-2007, 04:38 PM
Thanks a lot. I don't think its Javascript though, there shouldn't be any on the page :confused:

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

paid2review
03-21-2007, 10:17 PM
Fixed it now, thanks for the help. The css file was affecting the links.


Thanks :)