Design comparison
SolutionDesign
Community feedback
- @PhoenixDev22Posted almost 3 years ago
Greeting @Usmaniyya ,
I have few suggestions regarding your solution:
- Remove
/* height: 100%;*/
from the body. There'smin-height: 100vh
. using vh (viewport height) units allows the body to to grow taller if the content
outgrows the visible page.
width: 320px
an explicit width is not a good way . consider usingmax-width
to the card instead .
.container { max-width: 320px;/* You should use `em `and `rem ` units .Both `em `and `rem` are flexible, Using`` px`` won't allow the user to control the font size based on their needs.*/ /* height: 100%; */ /* margin-top: 5.4rem; */ remove the margin to center the card on the page. }
- It's recommended not to use px for font-size. you can use rem instead .
Overall , your solution is good .Hopefully this feedback helps.
Marked as helpful0 - Remove
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