Design comparison
Solution retrospective
I am not sure if what i have done is best css practice. Feedback are much appreciated..
Community feedback
- @iagohenrique2009Posted over 2 years ago
HI... 1- using * to change properties is a bad pratice and change everthing of your work, SO MY ADVICE is remove him, and if you want to center your work , you could use the flex-box property of css(if you want to give a deep read https://css-tricks.com/snippets/css/a-guide-to-flexbox/) 2- create a main with a class named position in your html and put or card div on him, after that you could use the following properties to center .position{ display: flex; flex-direction: column; align-content: center; justify-content: center; align-items: center; min-height: 100vh; }
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