@JustBenjaminSubmitted almost 2 years ago
I used CSS Flexbox to center align the card element. Is this considered the best practice?
I used CSS Flexbox to center align the card element. Is this considered the best practice?
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.