Jump to content

Displaying A Popup


ki

Recommended Posts

I have a code code right now which works but I want it to form to the height of the text, with mine I cant edit it unless I make specific values which some content will be dynamic and cant be determined. here's my code:

 

   <div id="div-overlay" onclick="javascript: closePopup();"></div>
   <div id="div-popup"></div>

 

div#div-overlay {
position: absolute;
top: 0;
left:0;
width: 100%;
height: 100%;
background: #000;
display: none;
opacity: .5;
filter: alpha(opacity=40);
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
}
div#div-popup {
position: absolute;
top: 50%;
left: 50%;
margin-left: -200px;
margin-top: -200px;
width: 400px;
height: 400px;
display: none;
background: #FFFFFF;
padding: 20px;
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
}

 

wat do?

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.