Absolute Center (Vertical & Horizontal) using CSS3 Transform

Centering an element vertically and horizontally using the css3 transform

.center {
    margin: 0 auto;
    display: table;
    position: relative;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}