Skip to content

Instantly share code, notes, and snippets.

@mrfoxtalbot
Last active February 14, 2016 02:33
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 mrfoxtalbot/cb69042c8326e6713fab to your computer and use it in GitHub Desktop.
Save mrfoxtalbot/cb69042c8326e6713fab to your computer and use it in GitHub Desktop.
Alinear en vertical. Heterodoxo pero funciona. Como mixin mola mil.
.element {
position: relative;
top: 50%;
transform: translateY(-50%);
}
/* As a mixin */
@mixin centerer {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment