<style> div{height:500px;width:500px;display:table-cell;vertical-align:middle} </style> <div>0000</div>