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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:49:16+00:00 2026-06-06T21:49:16+00:00

How do get a bar drop to down from the top of the browser

  • 0

How do get a bar drop to down from the top of the browser window after a period of time that the user has been viewing the page? Say 5 seconds. This bar would then push all content on the page down until the bar finishes appearing. The bar would be used to show a single line of text informing the user of something. And maybe a small little X on the right side of the bar to close it.

Currently this is the CSS:

#infobar {
    border-bottom: 5px solid;
    height: 25px;
    position: fixed;
    width: 100%;
    border-bottom-color: #F00;
    background-color: #9C9;
    margin-top:-16px;
}
#infobar .text {
    color: #FFFFFF;
    float: left;
    font-family: arial;
    font-size: 12px;
    padding: 5px 0;
    position: relative;
    text-align: center;
    width: 100%;
}
#infobar .text a {
    color: #FAFAFA;
}
#infobar .text a:hover {
    color: #FFE2A0;
}

</style>

And HTML:

<div id="infobar">
<div class="text">
....this is the bar text....
</div>
</div>
  • 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-06T21:49:18+00:00Added an answer on June 6, 2026 at 9:49 pm

    Using only HTML/CSS isn’t possible, as it needs animation and time control, you’ll need an additional technology, such Javascript/JQuery or Flash.

    EDIT 1

    I think the below code will do what you want.

    CSS

    <style type="text/css">
    
    #infobar {
        display:none;
        border-bottom: 5px solid;
        height: 25px;
        position: fixed;
        width: 100%;
        border-bottom-color: #F00;
        background: #9C9;
        margin-top:-16px;
    }
    #infobar .text {
        color: #FFFFFF;
        float: left;
        font:12px arial;
        padding: 5px 0;
        position: relative;
        text-align: center;
        width: 100%;
    }
    #infobar .text a {
        color: #FAFAFA;
    }
    #infobar .text a:hover {
        color: #FFE2A0;
    }
    
    #close {
        color: red;
        float:right;
    }
    
    </style>
    

    Javascript / JQuery

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
    
    <script type="text/javascript">
    
        $(window).load( function() {
    
             setTimeout( function() {
    
                 $("#infobar").slideToggle("fast");
    
             }, 5000);
    
    
            $("#close").click( function() {
    
                $("#infobar").slideToggle("fast");
                return false;
    
            });
    
    
        });
    
    </script>
    

    HTML

    <div id="infobar">
        <div class="text">
            ....this is the bar text....
            <a href="#" id="close">close</a>
        </div>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a website with a drop down navigation bar at the top, I
I'm trying to get my spinner working as the Action Bar Drop Down List
I'm trying to implement a drop down list as navigation for the action bar
I have a project that uses drop-down menus that are nested ul's, like so:
So, basically I have this select / drop down menu that I use AJAX
I've created a fixed, 100% width nav bar that spans the top of my
I have: var foo = '(bar)' foo.replace('(', '').replace(')', '') So, I get bar without
Suppose I have: class Foo { public String Bar { get; set; } }
i need grab to internet explorer address bar. how to get address bar url
i need grab to firefox address bar. how to get address bar url for

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.