Skip to content

Instantly share code, notes, and snippets.

@atmin
Created Mar 6, 2014
Embed
What would you like to do?
CSS vertical center, IE9+
/* src: http://zerosixthree.se/vertical-align-anything-with-just-3-lines-of-css/ */
.vcenter {
position: relative;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment