Align vertically a div inside a div


/ Published in: CSS
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. #wrapper {
  2. display: flex;
  3. justify-content: center;
  4. }
  5.  
  6. #inner {
  7. align-self: center;
  8. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.