Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author malihu

    (@malihu)

    Hi,

    Because of the way your fixed menu works, it’s a bit hard to achieve a similar, css-only solution (there’s no sibling element to target after the fixed header element!).

    The only way to fix this, is to change the initial non-fixed header position to absolute (so it occupies the “same space” as fixed) and give the image banner element below a similar top margin (so it doesn’t get cropped):

    #header-main {
        position: absolute;
        left: 0;
        right: 0;
    }
    
    #banner {
        margin-top: 87px;
    }

    The above will also make scrolling smoother eliminating the scrolling “glitch” when header becomes fixed ??

    Thread Starter rickykpg

    (@rickykpg)

    Hello,

    Thank you, works perfectly. You also saved me some time looking into the header bug so thank you for that as well.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Offet Not Working For Initial Scroll’ is closed to new replies.