ProfesseurCraft

vertical align center

Jun 17th, 2015
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. .vertical-center {
  2. min-height: 100%; /* Fallback for browsers do NOT support vh unit */
  3. min-height: 100vh; /* These two lines are counted as one :-) */
  4.  
  5. display: flex;
  6. align-items: center;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment