Home › Forums › CSS › center div with position absolute › Re: center div with position absolute
June 20, 2013 at 5:53 pm #139664
Based on your original post this [Pen might come in handy](http://codepen.io/connorgaughan/pen/gHqtl “CodePen”). Essentially you center the absolutely positioned div by defining a width by % not px. Using the box-model idea you split the difference from 100 and apply it to left and right.