HTML:


<div class="outer">
  <div class="inner">
  </div>
</div>

CSS:


.outer{
  position:relative;
}
.inner{
  width:100px;
  position:absolute;
  left:50%;
  margin-left:-50px; //half of the width of the element/div/img etc.
}