It's really not that hard.
<div class="center-this"><div>Stuff</div></div>
.center-this {display:table;} .center-this > div {display:table-cell;height:100%;vertical-align:middle;}
I even code pen'd it for you: http://codepen.io/anon/pen/RPEypL
<div class="center-this"><div>Stuff</div></div>
.center-this {display:table;} .center-this > div {display:table-cell;height:100%;vertical-align:middle;}
I even code pen'd it for you: http://codepen.io/anon/pen/RPEypL
No comments yet.