#wrapper{ position: relative; width: 200px; height:200px; background-color: #eee; } #contents{ position: absolute; top: 0; left: 0; right: 0; bottom: 0; margin: auto; width: 80px; height:50px; line-height:50px; text-align:center; background-color: #ccc; }