The following should work.
div{ position:fixed; width:500px; height:600px; margin:-300px auto auto -250px; top:50%; left:50%; text-align:center; }
Pickets -300 pixels and -250 - the negative half of the height / width of the div, respectively.
Maybe the best way to do this, but this is a method that I used a while ago.
Chris source share