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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:19:03+00:00 2026-06-07T01:19:03+00:00

When scrolling on a website I’ve built, using the CSS property position: fixed works

  • 0

When scrolling on a website I’ve built, using the CSS property position: fixed works as expected to keep a navigation bar at the very top of the page.

In Chrome, however, if you use the links in the navigation bar it sometimes disappears. Usually, the item you’ve clicked on is still visible, but not always. Sometimes the entire thing disappears. Moving the mouse around brings back part of the element, and scrolling with the scroll wheel or arrow keys just one click brings the element back. You can see it happening (intermittently) on https://nikeplusphp.charanj.it – you might have to click on a few of the navigation the links a few times to see it happen.

I’ve also tried playing with the z-index and the visibility/display type but with no luck.

I came across this question but the fix didn’t work for me at all. Seems to be a webkit issue as IE and Firefox work just fine.

Is this a known issue or is there a fix to keep fixed elements visible?

Update:

Only effects elements that have top: 0;, I tried bottom: 0; and that works as expected.

  • 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-07T01:19:05+00:00Added an answer on June 7, 2026 at 1:19 am

    This is a webkit issue that has yet to be resolved, oddly making the jump with JavaScript, rather than using the # url value, doesn’t cause the problem. To overcome the issue, I supplied a JavaScript version that takes the anchor value and finds the absolute position of the element with that ID and jump to that:

    var elements = document.getElementsByTagName('a');
    for(var i = 1; i < elements.length; i++) {
        elements[i].onclick = function() {
            var hash = this.hash.substr(1),
                elementTop = document.getElementById(hash).offsetTop;
            window.scrollTo(0, elementTop + 125);
            window.location.hash = '';
            return false;
        }
    }
    

    I could refine this further and make it is that only it only looks for links beginning with a #, rather than ever a tag it finds.

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

Sidebar

Related Questions

So i have a long scrolling 1page website with a fixed navigation bar. With
I have a single-page scrolling website. It uses a fixed-position nav bar with jquery
I've built a website for someone, but according to him, scrolling is very very
I am using a smooth scrolling plugin for the navigation on my website but
I am using the following code on a website to imitate smooth scrolling: function
I'm creating a horizontally scrolling website using jQuery and I also want to add
I have built a horizontal scrolling website. I don't really know much about Java
I am trying to develop auto horizontal scrolling for our website using - jQuery.ScrollTo
I am creating a website which uses jquery scrolling as the method of navigation
I have a horizontal scrolling website and depending on the scroll position I have

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.