<style type="text/css"> <!-- .main{width:600px; height:400px; top:50%; left:50%; margin-top:-200px; margin-left:-300px; position:absolute;} --> </style> <div class="main"> </div>