Skip to content

Instantly share code, notes, and snippets.

@ace-subido
Created June 5, 2014 04:12
Show Gist options
  • Save ace-subido/311945fbf2d937ff844e to your computer and use it in GitHub Desktop.
Save ace-subido/311945fbf2d937ff844e to your computer and use it in GitHub Desktop.
CSS Vertical Align
.parent-element {
-webkit-transform-style: preserve-3d;
}
.element {
position: relative;
top: 50%;
transform: translateY(-50%);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment