Design comparison
Solution retrospective
Please view the code and you can provide the feedback. Any kind of feedback will be genuinely appreciated.
Community feedback
- Account deleted
Hey Mahad, congratulations on completing the challenge 😉
Some little tips for optimizing your code:
- add
main
tag and wrap the card for improve the Accessibility - remove all unnecessary code, the less you write the better as well as being clearer: for example the
div
container of image - remove
height
from.container
class because isen't necessary - remove all
margin
from.container
class because with flex they are superfluous - use
min-height: 100vh
instead ofheight
to the body - instead of using
px or %
use relative units of measurement likerem
-> read here it's much better!
Hope this help! Happy coding 😁 by Travolgi
Marked as helpful0@mahadaamir35Posted over 2 years ago@travolgi Thank you for the feedback. I will try to use these tips in the future.
0 - add
- @mohammedlahboubPosted over 2 years ago
Hi @mahadaamir35 since you used display flex on the .container u could use
gap:0.8rem;
instead ofmargin-top:0.8rem;
check this: https://developer.mozilla.org/en-US/docs/Web/CSS/gapAnd to create an equal white space around the items inside .container just use
padding
(make sure to remove themargin-top
from the img)Marked as helpful0@mahadaamir35Posted over 2 years agoHi @mohammedlahboub I tried using padding in the .container div to create equal white space and removed margin-top from the img after your suggestion. Thanks for the feedback.
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