Here is a technique about how you can absolute center position an element on the horizontal and vertical in CSS.
Center Images Horizontally
To center something on the horizontal in CSS it's quite easy all you need to do is set the width on the element and apply an auto margin-left and margin-right on to the image. The browser will work out the exact margin on both the right and left side of the image. This will position the image in the center of the parent element just by using the width and the margin properties.
<img src="example.html" alt="Center Images" />
img {
width:250px;
margin: 0 auto;
}Continue reading