michaelwilhelmsen
3/14/2014 - 1:13 PM

Vertically align anything with just three lines of CSS

Vertically align anything with just three lines of CSS

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