<div class="box"></div>
.box { width: 50px; height: 50px; position: absolute; left: 0; right: 0; top: 0; bottom: 0; margin: auto; background-color: #ffff00; color: #000000; }