Design comparison
Solution retrospective
I used CSS Flexbox to center align the card element. Is this considered the best practice?
Community feedback
- @AvielDezPosted almost 2 years ago
Great job on finishing your first challenge! You did a much better job than me when I first attempted this challenge. I looked through your code and cleaned it up a bit. I thought it might be helpful for you to compare your code with my adjustments. You used some advanced stuff for a beginner which is great! There is beauty in simplicity though.
Take a look here: https://codepen.io/Mebeavi/pen/yLEqdPW?editors=1000
Please don't hesitate to reach out if you have any questions I would be more than happy to help. Happy coding and keep on keeping on!
P.S. To answer your question, Your solution to center your content using flexbox is totally fine.
Marked as helpful0
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