@LovelyFaisal
Posted
Hi @Jackgomez You've done great 💪
- You can center the component using flexbox
Add this property to
body
element
main {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
And delete margin: 15rem auto;
from .box
You can learn more about flexbox here
- Use <main> instead of a simple <div> this way you improve the semantics and accessibility showing which is the main block of content on this page. Remember that every page should have a <main> block and that <div> doesn't have any semantic meaning.
Click here for more information
Good job, and happy coding!
Marked as helpful