Skip to content

Instantly share code, notes, and snippets.

@jwebcat
Created January 24, 2014 08:14
Show Gist options
  • Save jwebcat/8593798 to your computer and use it in GitHub Desktop.
Save jwebcat/8593798 to your computer and use it in GitHub Desktop.
vertical align
%vertical-align {
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