Hello ppl,
I made a layer for my webpage, and I intent to use it when I add something new major things in the webpage.
The code is this :
<body onload="document.getElementById('pop').style.visibility='visible'">
<div id="pop" style="
position: absolute;
visibility: hidden;
border: 1pt black ridge;
left:300px;
z-index:10;
width: 150px;
height: 200px;">
here is a table with my news... in this table I have a picture [X] which whne is clicked it will set the layer to visibility: hidden.
</div>
What I want to ask you is how can I center the layer in the middle of the page? I wan't to be in the middle for all resolution, if somebody visit my page an has the screen set to 800x600 -> the layer should be in the middle and so on for every resolution.
I found a javascript which set a popup window to be in the center of the screen, but I need to set the top and left coordonates from the div style. How can I do that?
10x
see ya all
I made a layer for my webpage, and I intent to use it when I add something new major things in the webpage.
The code is this :
<body onload="document.getElementById('pop').style.visibility='visible'">
<div id="pop" style="
position: absolute;
visibility: hidden;
border: 1pt black ridge;
left:300px;
z-index:10;
width: 150px;
height: 200px;">
here is a table with my news... in this table I have a picture [X] which whne is clicked it will set the layer to visibility: hidden.
</div>
What I want to ask you is how can I center the layer in the middle of the page? I wan't to be in the middle for all resolution, if somebody visit my page an has the screen set to 800x600 -> the layer should be in the middle and so on for every resolution.
I found a javascript which set a popup window to be in the center of the screen, but I need to set the top and left coordonates from the div style. How can I do that?
10x
see ya all