@josh76543210
Posted
Hi @bbuglz81,
Congratulations on completing the challenge!
Here is a quick suggestion for centering your card:
First, give your body a minimum height so that your page takes up the entire viewport and display it using flexbox:
body {
min-height: 100vh;
display: flex;
flex-direction: column;
}
Next, you can center the card by simply adding a margin of auto all around main:
main {
margin: auto;
}
Hope this is helpful for you.
Happy Coding!
Marked as helpful
@bbuglz81
Posted
@josh76543210 Thank you SO much! I was bashing my head against that one for too long haha
@josh76543210
Posted
@bbuglz81 Happy to help!