Last active
November 12, 2015 13:49
-
-
Save portal7/cbea69207511e0c14031 to your computer and use it in GitHub Desktop.
Class Center for Vertical Centering on Bootstrap 3
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
.vertical-center { | |
min-height: 100%; /* Fallback for browsers do NOT support vh unit */ | |
min-height: 100vh; /* These two lines are counted as one :-) */ | |
display: flex; | |
align-items: center; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment