vertical centering
๐ ๏ธ How to Center in CSS?
๐ vertical-align
้้ป
/* inline element */
text-align: enter;
/* block element */
margin: 0 auto;
/* flex */
display: flex;
justify-content:center;
align-items:center;
ๅ่
CSS Vertical Align - How to Center a Div, Text, or an Image (freeCodeCamp)
Last updated
Was this helpful?