🛠️ 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 3 years ago