Help with anchors

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mikaint
    New Member
    • Nov 2007
    • 6

    Help with anchors

    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.
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    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.

    Comment

    Working...