Design comparison
SolutionDesign
Community feedback
- @cesmsdevPosted about 1 month ago
Hello.
You have created a good design, but which can be improved considering the following.
Use Flex and remove the default html styles, to avoid the default white borders. Consider using the following CSS code, to better align your card.
html, body { height: 100vh; display: flex; justify-content: center; align-items: center; margin: 0; }
This CSS code does not use “position: absolute;” which prevents the content from being correctly centered and aligned, this is why I recommend using flexbox.
.main { display: flex; justify-content: center; align-items: center; }
0
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