vertical centering

重點

/* inline element */
text-align: enter;

/* block element */
margin: 0 auto;

/* flex */
display: flex;
justify-content:center;
align-items:center;

參考

Last updated