-
Internal Linking Problem
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
Last edited by Schmoopy; 01-11-2009 at 08:53 PM.
-
-
So do you want the body of the page to scroll over your header?
-
-
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.
-
-
-
-
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.
-
-
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.
-
-
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
-
-
Try this:
Code:
<a name="jan">anchor</a>
It worked for me in web developer, just write anything between the anchor tags.
Good luck!
-
The Following User Says Thank You to Snookerman For This Useful Post:
-
Nice, pretty much fixed it - had to move the content up a bit but now it's working nicely,
Thanks,
Jack.
-
-
You're welcome, glad to help!
Good luck with your site!
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks