Center Absolute Position Element

Posted By Weston Ganger

<p>HTML:</p>

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

Article Topic:Software Development - HTML / CSS

Date:May 22, 2014