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 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

I have this code implemented and I like how straight forward it is because
I implemented this Jquery show/hide code and everything works fine except that the box
i have implemented code like here but it's not working for iOS 5.0, it
In my application, I'd like to have the navigation bar display a title and
I want to display search result on the screen, i have implemented in such
I have implemented the following code in my CPTScatterPlotDelegate to display a callout bubble:
I wrote this code implemented in a much bigger solution. the point was to
I found this code to display a modal view: - (void)add:(id)sender { // Create
I implemented some code using backbone.js in Asp.NEt MVC3 and found backbone.js very helpful.
I have implemented the code in Devise call backs in my application controller. First

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.