• Resolved kdric

    (@kdric)


    I am about to add a post with a number of section anchors, but in the preview I see that that anchored text is under the header like in this article.

    I can’t figure out what I need to do exactly to the css to fix this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there,

    you can try this method, give the anchor link a class eg.

    <h2 class="headline-anchor" id="my-link">Headline</h2>

    Then add this CSS:

    .headline-anchor{
        padding-top: 60px;
        margin-top: -60px;
    }

    Adjust the padding and margin values to compensate for the header.

    Thread Starter kdric

    (@kdric)

    Thanks

    You’re welcome

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Headers and Section Anchors’ is closed to new replies.