Note that there are some explanatory texts on larger screens.

plurals
  1. POOn click Button Pop up div should be center to screen
    primarykey
    data
    text
    <p>. .I have a button at the middle of the page. . .on click a pop up dialog box appears but. . it is centered to the top of the page but not center to the current screen at the middle of the page.. each time i have to scroll up and close the dialog box.The function which i need is where ever in the page i click the button the pop up should appear center to the current screen.Please help me out guys</p> <pre><code>#blanket {background-color:#111;opacity: 0.65;position:absolute;z-index: 9001; /*above nine thousand*/top:0px;left:0px;width:100%;} #popUpDiv { position:absolute; background-color:#eeeeee; border:5px solid #68ad0e; width:300px; height:130px; margin-top:-250px; margin-left:-23px; -moz-border-radius: 16px; -webkit-border-radius: 16px; border-radius: 16px; box-shadow: 12px 0 15px -4px #000000, -12px 0 15px -4px#000000; -moz-box-shadow: 12px 0 15px -4px #000000, -12px 0 15px -4px#000000; -webkit-box-shadow: 12px 0 15px -4px #000000, -12px 0 15px -4px#000000; z-index: 9002; /*above nine thousand*/} </code></pre> <p>And the html code is</p> <pre><code>&lt;div id="blanket""&gt;&lt;/div&gt; &lt;div id="popUpDiv"&gt; &lt;a href="javascript:void(0)" style="text-decoration: none" onclick="popup('popUpDiv')"&gt;&lt;div align="right"&gt;&lt;font color="green"&gt;close[X]&lt;/font&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;/a&gt; &lt;div align="center"&gt;Please Enter Your Area Pincode&lt;/div&gt; &lt;/div&gt; &lt;input type="button" value="pincode" onclick="popup('popUpDiv')";&gt; </code></pre> <p>Is There any .js function that can be added to solve this problem</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload