Design comparison
SolutionDesign
Solution retrospective
Feedback will be highly appreciated.. I know the design is not exact as the challenge Please help me improve
Community feedback
- @denieldenPosted about 2 years ago
Hi Bitu, congratulations on completing the challenge, great job! π
Some little tips for optimizing your code:
- you can use
article
tag instead of a simplediv
to the container card for improve the Accessibility - add descriptive text in the
alt
attribute of the images - remove all
margin
fromcard
class because with flex they are superfluous - use
min-height: 100vh
tocontainer
class instead ofheight
, otherwise the content is cut off when the browser height is less than the content - add
transition
on the element with hover effect - instead of using
px
use relative units of measurement likerem
-> read here
Hope this help! Happy coding π
Marked as helpful0 - you can use
- @hyrongennikePosted about 2 years ago
Hi @rauthbitu,
Nice job on completing the challenge
It mostly just spacing issues you can make the following changes to the values in the CSS file.
.card { width: 100%; max-width: 350px; } .text { padding: 2rem; } .price { margin-top: 1rem; }
remove the margin on the
.text p
. Hope this is helpful.Marked as helpful0
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