my solution for QR code component challenge

Solution retrospective
I found a difficulty in centering but I figured it up ,I tried my best and I'm sure of all what I wrote it my code.
Please log in to post a comment
Log in with GitHubCommunity feedback
- P@danielmrz-dev
Hello, @chemsodev!
Your project looks very nice!
You did a great job centering your card using
position
.There's another very good way, in case you wanna practice more:
body { height: 100vh; display: flex; justify-content: center; align-items: center; }
This will place your card in the middle of the page with no need for
margins
orpaddings
. I use both your way and mine, depending on the project. They are both correct 😊I hope it helps!
Marked as helpful
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord