Last active
February 18, 2016 04:36
-
-
Save dedosmedia/7a273d7aac90a310a76f to your computer and use it in GitHub Desktop.
Centra una imagen vertical y horizontal en el div que la contiene
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
img.centered { | |
position: absolute; | |
margin: auto; | |
top: 0px; | |
left: 0px; | |
bottom: 0; | |
right: 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment