Posted By

lapinblanc on 01/26/17


Tagged

Flex alignverticalmiddle


Versions (?)

Align vertically a div inside a div


 / Published in: CSS
 

Align a div vertically inside another div (variable height) (tl;dr)

  1. #wrapper {
  2. display: flex;
  3. justify-content: center;
  4. }
  5.  
  6. #inner {
  7. align-self: center;
  8. }

Report this snippet  

You need to login to post a comment.