View Full Version : Resolved Internal Linking Problem
Schmoopy
01-09-2009, 04:12 PM
Not having actual problems with the linking itself, but I'm a bit stuck as how to get around my fixed images.
Basically at the moment, I have a header and sidebar that scroll with the page and so are positioned with fixed, this becomes a problem when I want to go to the very top of the page, as it will go up to the top, but the images / text are behind the top header. Even if I put the anchor straight after the <body> tag it still doesn't scroll the whole way up, there is a demo of it here:
http://www.bristoldnb.co.uk/testindex.html
Just click the "January" link and you'll see what I mean. Anyone know how to fix this, is there a command that makes the page scroll to the very top or something in JavaScript I can use?
Thanks for any help,
Jack
Snookerman
01-09-2009, 04:46 PM
So do you want the body of the page to scroll over your header?
Schmoopy
01-09-2009, 06:16 PM
No, I want to keep it as it is, but just have it go all the way to the top, instead of scrolling only so far up.
Schmoopy
01-10-2009, 05:10 PM
Any more suggestions?
Snookerman
01-10-2009, 05:57 PM
I'm not sure if we are seeing the same thing here. When I click January, the page goes up too much, it stops at "Front bar - reggae". Do you want to stop at "Avalaf" or "Epyphani"? If you want it to scroll even more, then you have to put the anchor lower down on the page. Screenshots of what you see and what you want would be really helpful.
Schmoopy
01-10-2009, 06:06 PM
Yea I know what you mean, I want the page to scroll all the way to the top - instead of stopping at Front Bar I want it to go further up, above Avalaf, so that the "15/01/09" part is visible, but I've tried putting the anchor just after the body tag with no luck, hope you can help,
Thanks,
Jack.
Schmoopy
01-11-2009, 07:45 PM
Ok, for more clarification, I've included a screenshot of what I want it to look like - I'm pretty sure this is now going to need JavaScript to accomplish, getting document height and moving to the top.
Anyway - here is the current, and the desired versions:
Current:
http://www.bristoldnb.co.uk/images/wrong.jpg
Desired:
http://www.bristoldnb.co.uk/images/right.jpg
Hope that cleans up any confusion about what I want, and I also don't mind if it just scrolls straight up to the top (e.g. scroll bar as far up as it can go) to the top, as it still shows the firsth month.
Thanks,
Jack
Snookerman
01-11-2009, 07:59 PM
Try this:
<a name="jan">anchor</a>
It worked for me in web developer, just write anything between the anchor tags.
Good luck!
Schmoopy
01-11-2009, 08:52 PM
Nice, pretty much fixed it - had to move the content up a bit but now it's working nicely,
Thanks,
Jack.
Snookerman
01-11-2009, 09:03 PM
You're welcome, glad to help!
Good luck with your site!
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.