<div class="layer">Layer Contents</div>
body{background:#ccc}
.layer{
  position:absolute;
  top:50%;
  left:50%;
  width:100px;
  height:100px;
  background:#f00;
  margin:-50px 0 0 -50px;
}
Rerun