Design comparison
Solution retrospective
Hello Developers👋
Yes, it was fun😄
As always, I'd really appreciate if you could answer the following:👇
1.What did I do wrong? 2.What did I do right? 3.How can I improve? common mistakes?
🙏Thanks in advance Happy Coding😄
Community feedback
- @AbdullahFareaPosted almost 3 years ago
You did almost everything right except one thing and it's the body backgound-color, you used the "grayish blue" color instead of the "light gray" one. You should put the card inside a div, article, section tag instead of the "main" tag
Marked as helpful2@itushPosted almost 3 years ago@AbdullahFarea Thank you very much for the feedback. It was really helpful.🙏
- background-color is now light gray.
- The card is now inside of a section.
Looking forward to receiving more feedback from you in future.
Happy to connect & Happy Coding 😄
1 - @ccreusatPosted almost 3 years ago
Nice job ! Although, I think you don't need those widths in
vw
. Max-width: 320px (or in rem unit) would be enough. The window resize gives a strange effect on your component.If you want your component more centered, take a look to
display: flex
andplace-items: center
. Your html and body tags will need min-height: 100vh;Marked as helpful1@itushPosted almost 3 years ago@ccreusat Thank you very much for the feedback. It was really helpful.🙏
- Max-width in rem unit is better than width in vw. It has been taken care of.
- display: flex and place-items: center are a very powerful combo. However, instead of using
main{ display: flex; flex-direction: column; place-items: center; }' I'm using
section{
margin: 10vh auto; }` - Still not sure why should I use
html, body{min-height: 100vh;}
. Over complicating things with this & this, while finding a simple answer.
Looking forward to receiving more feedback from you in future.
Happy to connect & Happy Coding 😄
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