Skip to content

Instantly share code, notes, and snippets.

@falvarez
Created January 15, 2014 10:33
Show Gist options
  • Save falvarez/8434057 to your computer and use it in GitHub Desktop.
Save falvarez/8434057 to your computer and use it in GitHub Desktop.
CSS Vertical alignment (Method 1)
.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