@Bayoumi-dev
Posted
Hey Ibukun,
To center the component on the page, Give the parent element <main>
the following properties:
main {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 100vh;
}
Some Resources
- How to Center Anything with CSS - Align a Div, Text, and More
- 11 Ways to Center Div or Text in Div in CSS
I hope this is helpful to you... Keep codingπ
Marked as helpful