Design comparison
Solution retrospective
I'm proud of remembering the width element to control the size of it all, as well as using margin-left and margin-right to center it.
What challenges did you encounter, and how did you overcome them?Mainly just getting the specific numbers right, not completely sure I did it since I was eyeballing the whole time.
What specific areas of your project would you like help with?I still don't understand landmarks as much.... Would love assistance on that to make sure accessibility users can maneuver properly.
Community feedback
- Account deleted
👋 Hey, @oduwa-A! I have a few suggestions for your solution:
Remove the
margin
from.info-card
and add flexbox to thebody
. It should look like this:body { display: flex; justify-content: center; align-items: center; min-height: 100vh; flex-direction: column; }
Using
margin
only centers the element horizontally, while flexbox allows you to center it both horizontally and vertically.Everything else looks great. Great work! 👏
I hope you find this helpful. 😊
Marked as helpful1 - @SpartanFrancoPosted 3 months ago
Hola ,te recomiendo usar flex en el body para centrar la tarjeta como en el diseño ,si quieres que se parezca ,por lo demás ...genial💪
Marked as helpful1
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