Last active
February 8, 2018 13:26
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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