Created
April 25, 2016 16:49
-
-
Save karki-dennis/cf662ca029351f31d822d667b2ea05f7 to your computer and use it in GitHub Desktop.
Vertical center with css
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
/*All browser support*/ | |
.vertical-center{ | |
width:250px; | |
top: 50%; | |
transform: translateY(-50%); | |
position: relative; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment