Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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