Skip to content

Instantly share code, notes, and snippets.

@pablo-sg-pacheco
Last active May 10, 2016 18:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pablo-sg-pacheco/6826b1a6ac082474eda121b657dca7fe to your computer and use it in GitHub Desktop.
Save pablo-sg-pacheco/6826b1a6ac082474eda121b657dca7fe to your computer and use it in GitHub Desktop.
CSS - Center vertically
.center-v-parent{
-webkit-transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
transform-style: preserve-3d;
}
.center-v {
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