Viewing 3 replies - 1 through 3 (of 3 total)
  • did you ever get an answer? I have tried several things myself and see others have same question…Please post your code edits if you have found a solution – I will do the same if i come up with one today!

    same problem here, anyone? thanks!

    AJ

    (@permaculturetreegeek)

    I got this working using a margin and padding offset attached to a class on the anchor. Change the numbers to fit the height of your heading.

    The HTML:

    <h3>
    <a class="offset" name="mission"></a>
    Mission
    <a href="#top" title="Return to top">^</a>
    </h3>

    The CSS

    .offset {
        display: block;
        margin-top: -100px;
        padding-top: 100px;
        width: 1px;
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to scroll to offset anchor links’ is closed to new replies.