Skip to content

Instantly share code, notes, and snippets.

@meritt
Forked from colintoh/douchebag-vertical-align.css
Last active June 18, 2021 07:14
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save meritt/60f88267cfa151043e75 to your computer and use it in GitHub Desktop.
Save meritt/60f88267cfa151043e75 to your computer and use it in GitHub Desktop.
.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