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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:06:00+00:00 2026-05-26T23:06:00+00:00

The header is fixed when scrolled down. However, when scrolled back up all the

  • 0

The header is fixed when scrolled down. However, when scrolled back up all the way to the top, the header detaches and is unfixed again. How do I maintain a prolonged fixed header?

How do I edit jQuery or CSS code, or can I download a plugin?

Here’s the example I’m basing off of: http://www.chipotle.com/en-US/html/cultivate.html#fnd

  • 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-26T23:06:00+00:00Added an answer on May 26, 2026 at 11:06 pm

    The following jQuery should accomplish what you are looking for:

    $(document).ready(function() { 
    
      $(window).scroll(function(e) {  
        if ($(window).scrollTop() > x) { 
          $('.stayStill').addClass("fixed");
        } else {
          $('.stayStill').removeClass("fixed");
        } 
      }); 
    
    }); 
    

    x (which should be changed to a number (i.e. 100, 120, etc)) marks how many pixels from the top you have to be when the div is set to the fixed class. Once the person goes back above x pixels, it will be set back to normal, by removing the fixed class.

    Also, .stayStill would represent your navigation bar, or whatever class you want to stall still.

    Your fixed class should consist of the following CSS:

    position: fixed;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm interested in the way lala.com works. They have a header that remains fixed
Header div on top of the 3 columns Height of all columns must fill
How to create a fixed header like Twitter/Facebook on the top of the page
I am trying to create a table w/ a fixed header at the top
I have a page with a header position:fixed DIV at the top . This
Is there any way to create a fixed header and footer in Webworks for
There are very good demos show a fixed header on top & scrollable contents
I'm implementing a table with a fixed header using this kind of setup: <div
I have background image for a site header with fixed width. Now I am
Header, footer and sidebars have fixed position. In the center a content area with

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.