Design comparison
SolutionDesign
Community feedback
- @HassiaiPosted almost 2 years ago
to center .card on the page, replace height: 100vh with min-height : 100vh; in the main. reduce the padding value of .card to 15px, there is no need to give .card a margin value.
Use rem or em as unit for the padding , margin, width and preferably rem for the font-size for more on this watch this https://youtu.be/N5wpD9Ov_To
Hope am helpful. HAPPY CODING
1@benlutzPosted almost 2 years ago@Hassiai thank you for your feedback! Your totally right - it doesn't make too much of a difference visually, but your's is the correct way of doing it.
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