Skip to content

Instantly share code, notes, and snippets.

@JoshuaFrontEnd
Last active February 8, 2018 13:26
Show Gist options
  • Save JoshuaFrontEnd/61f9068626ed873accab37f3af90b6db to your computer and use it in GitHub Desktop.
Save JoshuaFrontEnd/61f9068626ed873accab37f3af90b6db to your computer and use it in GitHub Desktop.
Centrar cualquier elemento en posición horizontal y vertical en CSS con transform y posición absoluta
.centrado-porcentual {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment