i am haveing one DIV tag in my application.
i want to display it at the center position of the current screen(at the time of button click)
i am not able to set the top & left of the DIV tag to display at the center....i can't give it static
i have used java script to display DIV tag..
Plz reply if anybody have idea about that...
Getting mouse position
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Lalit MRank #1,186 · 1.5K reputationPosted Feb 3, 2010, 1:26 AM EST
div.centered {
position: fixed;
left: 50%;
top: 50%
width: 200px;
height: 100px;
overflow: auto;
margin-top: -50px;
margin-left: -100px;
}
another way