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

  • Home
  • SEARCH
  • 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 8842879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:04:39+00:00 2026-06-14T11:04:39+00:00

I try to load specific location in same page. But the problem is, the

  • 0

I try to load specific location in same page. But the problem is, the header is fixed on position top, When I click the links, the header go behind of the header. So I am not able to show some contents. Please visit this Fiddle. You can understand what I am try to say.
I dont like to add padding and margin.

  • 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-14T11:04:40+00:00Added an answer on June 14, 2026 at 11:04 am

    You might want to change your HTML. There can be only one id per page.

    In the given fiddle, you have a repeating <div id="one">

    Now, to get the scroll working, you could do something like this :

    $(document).ready(function(){
        $("a").click(function(e) {
            e.preventDefault();
            var hash = $(this).attr("href");
            //console.log($(hash).position().top);
            $('html, body').animate({ scrollTop: $(hash).position().top - 50 }, 200);
    
        });
    });
    

    Here $(hash).position().top gets the position of the div on the page and I subtract 50 from it (the height of the fixed div).

    Here is a fiddle
    ​

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I try to load specific location in same page. so I use this code
I use umbraco with my website, when I try to load a specific page
I was try to load unlimited categories to dropdownlist but I failed. **Categories** ID,
When I try to load the following page in IE7 & IE8 I receive
i have the following code to try and load a local html page in
I'm diving into iOS development and when I try to load a specific Facebook
This specific url <-- (click to view) is working fine. http://bankisrael.gov.il/currency.xml But when trying
I try to load the customview class that is inside my mainclass in xml.
I try to load data into a certain column into a table with the
I try to load a node only to face the EInvalidPointer error on Delphi.

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.