Last Updated: February 25, 2016
·
7.627K
· corysimmons

Vertically and Horizontally Center Content in Webkit with CSS3 Flexbox

display: -webkit-flex;
display: flex;
-webkit-justify-content: center;
justify-content: center;
-webkit-align-items: center;
align-items: center;

Works in Chrome, Opera, and Maxthon.