By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,966 Members | 2,006 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,966 IT Pros & Developers. It's quick & easy.

Help with anchors

P: 6
I have a page with a standard header and a lot of anchor links...when you click on a link, the relevant anchor will come on top of page, so the header will not be visible and you have to scroll up in order to see it. What i need to do is to specify a standard position to the anchor links, so that the header will be always visible. Something like padding-top: 150px; with css, but this will not work in this case. So i'm looking if there's something in javascript to help me do it.
Nov 16 '07 #1
Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
Can you post some of your code.

You will need to fix the position of the headers on the page using position:fixed (not supported by IE6) - see link.
Nov 17 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.