﻿mydiv {
    position:fixed;
    top: 50%;
    left: 50%;
    width:610px;
    height:310px;
    margin-top: -155px; /*set to a negative number 1/2 of your height*/
    margin-left: -305px; /*set to a negative number 1/2 of your width*/
}