Design comparison
Solution retrospective
hello π front-ends π¨βπ This is my Solution for Order Summary Component Challenge
Any ideas how I can improve this ??
leave your thoughts β€
Community feedback
- @correlucasPosted over 2 years ago
πΎHello Naleeka, congratulations for your new solution!
Another great solution and great design! Your solution is almost done and I've found only one thing you can improve, the responsiveness. I saw that you've used media queries but you don't really need that for this challenge.
There are 3 factors that are making the card doesnt contract and behave responsive. The heading, the pricing section and the button. You've used
width: 100%
for this elements and this make the container behave like a block and dont contract scaling the elements, note thatwidth: 100%
means that these elements has 100% of the container theyre inside and be fixed, to make they responsive replace withmax-width: 100%
. Also something to improve the image resposiveness is to use display block andobject-fit: cover
to make it crop inside the container.π I hope this helps you and happy coding!
Marked as helpful1
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