Title: Offet Not Working For Initial Scroll
Last modified: August 31, 2016

---

# Offet Not Working For Initial Scroll

 *  Resolved [rickykpg](https://wordpress.org/support/users/rickykpg/)
 * (@rickykpg)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/offet-not-working-for-initial-scroll/)
 * Hello,
 * I seem to be having a similar problem as mentioned in [https://wordpress.org/support/topic/scrolling-offset-not-working-on-first-click?replies=24](https://wordpress.org/support/topic/scrolling-offset-not-working-on-first-click?replies=24)
   with the initial scroll. I was unable to get the initial fix suggested in that
   thread to work so I’m hoping you’d be able to help me get this issue sorted out.
 * [http://rpgcrisis.net/test/downloads/](http://rpgcrisis.net/test/downloads/)
 * Any help would be greatly appreciated!
 * Thank you.
 * [https://wordpress.org/plugins/page-scroll-to-id/](https://wordpress.org/plugins/page-scroll-to-id/)

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

 *  Plugin Author [malihu](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [10 years ago](https://wordpress.org/support/topic/offet-not-working-for-initial-scroll/#post-7369453)
 * 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](https://wordpress.org/support/users/rickykpg/)
 * (@rickykpg)
 * [10 years ago](https://wordpress.org/support/topic/offet-not-working-for-initial-scroll/#post-7369455)
 * 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.

 * ![](https://ps.w.org/page-scroll-to-id/assets/icon-256x256.png?rev=1401043)
 * [Page scroll to id](https://wordpress.org/plugins/page-scroll-to-id/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/page-scroll-to-id/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/page-scroll-to-id/)
 * [Active Topics](https://wordpress.org/support/plugin/page-scroll-to-id/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/page-scroll-to-id/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/page-scroll-to-id/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [rickykpg](https://wordpress.org/support/users/rickykpg/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/offet-not-working-for-initial-scroll/#post-7369455)
 * Status: resolved