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...
Loading
Lalit MPosted Feb 3, 2010, 6:26 AM
div.centered {
position: fixed;
left: 50%;
top: 50%
width: 200px;
height: 100px;
overflow: auto;
margin-top: -50px;
margin-left: -100px;
}
another way