#mainsite{ position: absolute; left: 50%; top: 50%; width: 750px; height: 610px; margin-left: -375px; margin-top: -305px }