Design comparison
SolutionDesign
Community feedback
- @correlucasPosted over 2 years ago
πΎHello James, congratulations for your new solution!
Your solution is great and really responsive, I've some tips to improve it even more:
Use
object-fit: cover;
to make the header image scale and crop inside the container:img { object-fit: cover; max-width: 100%; display: block; }
Create a media query to save space in the pricing section by puttin every element in a different row after
320px
@media (max-width: 320px) { .order-card .content .price { display: flex; flex-direction: column; } }
π I hope this helps you and 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