One of my projects includes a CSS modal dialog that is structured as follows
div {
position:fixed;
top:50%;
left:50%;
margin:-26% 0 0 -26%;
width:46%;
height:46%;
padding:3%;
}
Interestingly, this div appears centered in webkit browsers. However, in FF, it appears to be very close to the top of the screen.