Design comparison
SolutionDesign
Solution retrospective
What are some best practices when it comes to centering elements?
Community feedback
- @edbizichjrPosted almost 2 years ago
Hello!
Card looks good!
Tips for centering elements I personally have found flex box to be helpful. On these projects I often use it to center it since they are just small elements. More can be found out here. https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Flexbox
Another note is to try to always link out to your stylesheets to get into best practices and keeping them out of your html.
Happy Coding! -Ed
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