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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:31:25+00:00 2026-05-18T08:31:25+00:00

I have a website and I would like to put a DIV above this

  • 0

I have a website and I would like to put a DIV above this website with field to enter e-mail and button “Subscribe”. It should work like this advertisements that we all like. So this div should be always on the center of the screen, and it should be “above” the website and scroll while user is browsing though the page. When user clicks X it should close.

How to do this?

  • 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-18T08:31:26+00:00Added an answer on May 18, 2026 at 8:31 am

    See the CSS position:fixed and z-index properties. To center the item horizontally and vertically, give it fixed dimensions, position it at 50%,50%, and then use negative margins. For example:

    #annoying-floater {
      z-index:10;
      position:fixed;
      top:50%; left:50%;
      width:640px; height:480px;
      margin-left:-320px; margin-top:-240px
    }
    

    To ‘close’ it, set the display to none via JS. For example:

    window.onload=function(){
      document.getElementById('annoying-floater-closer').onclick = function(){
        document.getElementById('annoying-floater').style.display='none';
      }
    }
    
    • 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 all my photos, I would like people to be
I have an existing ASP.NET website which I would like to painlessly add CMS
I would like to have the authentication and registration parts of my website encrypted
We let users create ad-hoc queries in our website. We would like to have
I have a website where users can post their articles. I would like to
We have a website we would like to transfer to our Server 2008, IIS7
I have 10 websites on an IP. I would like to share the IP
Which search engine would you recommend for a Commerce website? We have millions of
I have put together an example page detailing my problem My website is going
I am developing a website in PHP and I would like to use a

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.