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
https://forums.phpfreaks.com/topic/268918-displaying-a-popup/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.