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 7647373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T10:26:45+00:00 2026-05-31T10:26:45+00:00

I have a fixed top bar – so if you click on an internal

  • 0

I have a fixed top bar – so if you click on an internal link (<a href="#xxx">) it gets obscured. Is there any way for me to force (via Jquery/JS) so that any #xxx link gets automatically offset Z pixels?

As requested, example link: http://examine.com/supplements/Creatine/#ref32

  • 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-05-31T10:26:46+00:00Added an answer on May 31, 2026 at 10:26 am

    It’s better to handle this via html/css changes as opposed to using javascript to correct the issue. Place your content in a scrollable div with a margin at the page top as a placeholder for the fixed content. If you post your html then more specific advice can be given.

    Here is an example:

    http://jsfiddle.net/mrtsherman/CsJ3Y/3/

    body { overflow: hidden; }
    #header { position: fixed; top: 0; left: 0; width: 100%; height: 50px; background: gray; border: 1px solid black; }
    #content { 
        overflow: scroll; 
        position: absolute;
        top: 50px;
        bottom: 0px;
        width: 100%;
        border: 1px solid blue; 
    }
    

    html

    <div id="header">header</div>
    <div id="content">
        <div>
            Page Content <br />
            <a id="a1" href="#anchor2" name="anchor1">Anchor 1</a>                
            <a id="a2" href="#anchor1" name="anchor2">Anchor 2</a>   
        </div>
    </div>​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

so I have a page that has a fixed link bar on the side.
I want to have a nav bar set position: fixed to the top of
I have a fixed bar on the top of my site, when I scroll
I can't make td Date to have fixed height. If there is less in
Okay so i have a nav bar on top of the webpage and on
I have seen scripts that have a menu fixed to the top of the
On my sandbox site there is a white bar across the top. It is
I have a navigation bar on my website. The HTML: <nav id=navigation> <a href=index.html>
in my app i have a application bar at the top and an tab
I have a #top bar in my website. It is always visible at the

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.