Jump to content

[SOLVED] Overlay a div over entire page?


Prismatic

Recommended Posts

I'm having some trouble laying a DIV over my page.. Basically what im trying to do (see other thread in javascript section) is make a kind of loading screen, which consists of a DIV that is above everything else and 100% width and height of site with a small picture in the middle that says Loading. My trouble is the div isn't layering over everything, It's sitting at the top of my page pushing all the site code down under it.  You can see what im talking about in the attached picture (no it's not a porno site, it's blurred for confidentiality reasons). The code im trying is below, and im placing it directly under the <body> tag.

 

<div id="NoClick" style="position:relative; width:100%; height:100%; z-index:1; background-image: url(Images/DisableBack.gif); layer-background-image: url(Images/DisableBack.gif); border: 1px none #000000; visibility: visible;"></div>

 

Any ideas on how to get it to properly overlay across the page without pushing everything down?

 

 

 

[attachment deleted by admin]

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.