Skip to content

Instantly share code, notes, and snippets.

@portal7
Last active November 12, 2015 13:49
Show Gist options
  • Save portal7/cbea69207511e0c14031 to your computer and use it in GitHub Desktop.
Save portal7/cbea69207511e0c14031 to your computer and use it in GitHub Desktop.
Class Center for Vertical Centering on Bootstrap 3
.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