Vertical Align Source: http://zerosixthree.se/vertical-align-anything-with-just-3-lines-of-css/

Xiao-Hu Tai
2014-01-13T13:37:12Z

vertical-align.css

| .element {
| position: relative;
| top: 50%;
| transform: translateY(-50%);
| }

vertical-align.scss

| @mixin vertical-align {
| position: relative;
| top: 50%;
| -webkit-transform: translateY(-50%);
| -moz-transform: translateY(-50%);
| -o-transform: translateY(-50%);
| -ms-transform: translateY(-50%);
| transform: translateY(-50%);
| }
|
| .element p {
| @include vertical-align;
| }