Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8867995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:09:47+00:00 2026-06-14T17:09:47+00:00

http://communitychessclub.com/index.php is a long web page that uses a permanent position:fixed menu based on

  • 0

http://communitychessclub.com/index.php is a long web page that uses a permanent position:fixed menu based on code from http://blog.yjl.im/2010/01/stick-div-at-top-after-scrolling.html

But the menu contains links to ID’s in the same page, and when clicked, the fixed scrolling menu obstructs part of the . For example: http://communitychessclub.com/#official and you see the menu blocking the target article text. Note that I have and that’s the logical syntax and location I want.

Is there a way to modify the jquery below so that the page down scrolls 1″ to make the menu appear off the target article? I don’t care if the menu is covering the article above the target ID article.

CSS:
#sticky {margin:0 auto; display:table}
#sticky.stick {position: fixed;  top: 0; margin-left:48px; z-index: 10000; }

JS:

<script>
function sticky_relocate() {
var window_top = $(window).scrollTop();
var div_top = $('#sticky-anchor').offset().top;
if (window_top > div_top)
$('#sticky').addClass('stick')
else
$('#sticky').removeClass('stick');
}

$(function() {
$(window).scroll(sticky_relocate);
sticky_relocate();
});
</script>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T17:09:48+00:00Added an answer on June 14, 2026 at 5:09 pm

    This piece of JavaScript will work.

    $(window).scroll((function() {
    var a='',  // a buffer to the hash
    w = $(window);
    return function() {
        var h = location.hash;
        if (h != a) {   // if hash is different from the previous one, which indicates
                            // the hash changed by user, then scroll the window down
        a = h;           // update the buffer
        w.scrollTop(w.scrollTop()-100)
        }
    };
    })());
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use a position:fixed menu at http://communitychessclub.com/index.php to keep the menu on screen even
Note: clicking on the left chess piece at http://communitychessclub.com/rabren/index.php?clear=1 is supposed to unset $choice
I am trying to implement jquery jqmodal at http://communitychessclub.com/test-me.php and am basing my effort
http://services.tvrage.com/tools/quickinfo.php?show=Chuck I'm trying to parse that info, for example, get the Airtime, Airtime@Monday at
I have http://communitychessclub.com/games-nu.php with a game scores table. And I want the user to
http://pastebin.com/25CwPDB2 <-- Index.php http://pastebin.com/4ZTvy0kk <-- /system/Main.php This seems to happen on both a Windows
I want to pop-up a modal window based on a jquery script at http://communitychessclub.com/js/jquery.popupWindow.js
http://jqueryui.com/demos/accordion/ You can do $('#itename').accordion('activate', 0) to make an accordion closed but that'll change
http://msdn.microsoft.com/en-us/library/ms379570(v=vs.80).aspx I know that Arrays in .net is stored in a contiguous fashion. (
http://markallanson.net/wordpress/index.php/category/rsmb/ I was trying to follow the above link for setting up mqtt as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.