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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T21:07:23+00:00 2026-05-14T21:07:23+00:00

I implemented the code to dislay the bar at the top of the stackoverflow

  • 0

I implemented the code to dislay the bar at the top of the stackoverflow screen: How to show popup message like in stackoverflow

What this does is display the div over top of the div at the top of the page. How can I display the new “bar” div and push the others down? Just like StackOverflow does.

  • 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-14T21:07:24+00:00Added an answer on May 14, 2026 at 9:07 pm

    Edit: The immediate reaction to my code below will be to not use the div#removeme tag and instead provide a margin-bottom. However if you are going with position:fixed this won’t work as it attaches itself to the window and not the document.


    This is what i do:

    In my html document:

    <div id="removeme">
        <br /><br />
    </div>
    
    <div id="header"> This is a floating pane! </div>
    <div id="content"> Your content goes here... </div>
    

    The CSS for this floating pane is:

     #header {
       position: fixed;
       top: 0px;
       left: 0px;
       text-align: center;
       background-color: #FFE6BF;
       height: 30px;
       border: 1px solid #FFCFA6;
       width: 100%;
      }
    

    And then use jquery in the <head> tag:

    $(document).ready(function() {
     $('#header').click(function() {
      $('#header').slideUp('fast');
      $('#removeme').remove();
     });
    });
    

    I have an extra <div> tag with id removeme to push the contents down when the floating pane is visible and i remove it whenever the floating pane is hidden.

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

Sidebar

Related Questions

The following code is implemented in Page_Load event to show SaveFileDialog to the user
In my application, I'd like to have the navigation bar display a title and
I created a div(search result term bar) which should display only when user enters
I found this code to display a modal view: - (void)add:(id)sender { // Create
I am looking to have a C# application implement the Konami Code to display
With the release of Visual Studio 2008, Microsoft implemented code-completion and IntelliSense support for
How is the following code implemented in Perl? sub add_item : Local { my
I read some source code of ZenTest but didn't find where it is implemented.
I have some .NET remoting code where a factory method, implemented in some server
I would like to use Fancybox to display a registration form within an iFrame.

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.