#nf-form-2-cont { width:600px; height:600px; position:absolute; top:50%; left:50%; margin-top:-300px; /* this is half the height of your div*/ margin-left:-300px; /*this is half of width of your div*/ }