jaymascarenas
4/26/2016 - 7:45 PM

Horizontally center element inside of a div

Horizontally center element inside of a div

element {
position: relative;
top: 50%;
transform: translateY(-50%);
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
}