Design comparison
Solution retrospective
Proud of actually being able to do it. Would try and space the card to be further away from the top of the page.
What challenges did you encounter, and how did you overcome them?Being able to create the card, used W3Schools to assist on how to do this. As well as sizing of the QR code image
What specific areas of your project would you like help with?How to space the card to be further away from the top of the webpage
Community feedback
- @danielmrz-devPosted 4 months ago
Hey there! šš½āāļø
Congrats on completing the challenge! ā
Your project looks fantastic!
Here's a tip to make it even better:
Using
margin
and/orpadding
or evenposition
isn't always the best way to center an element. Try this method to center an element vertically and horizontally:š Apply this CSS to the body (skip position or margins to make it work correctly):
body { min-height: 100vh; display: flex; justify-content: center; align-items: center; }
Hope this helps!
Keep up the great work!
Marked as helpful1 - @WesleyBSilva1Posted 4 months ago
you could use div{ position:absolute; top: 50% bottom:50% transform: translate(-50%,-50%} that would centralize the div in middle of the screen.
1
Please log in to post a comment
Log in with GitHubJoin 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