[Support request] Anchor point hidden by Menu

Home Forums Support [Support request] Anchor point hidden by Menu

Home Forums Support Anchor point hidden by Menu

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1051813
    Ronny

    Hello,
    I try to make my own TOC and when it jumps to the anchor mark the actual heading is hidden by the menu. Is there a possibility to add some space?
    This is a try page to see the problem.
    https://www.diving-canary-islands.com/sitemap-try/

    #1051855
    David
    Staff
    Customer Support

    Hi there,

    You can try add this CSS hack to your headings – first your Heading markup would be like this:

    <h2 class="jump-link">Heading listed in the TOC</h2>

    Then this CSS:

    h2.jump-link {
        padding-top: 70px;
        margin-top: -70px;
    }

    The only negative is some older browsers may ignore the padding offset method.

    #1051873
    Ronny

    It’s working 🙂 Thank you, just switched to 100px to have a little more space

    #1051881
    David
    Staff
    Customer Support

    Glad to be of help

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.