Submitted about 4 years agoA solution to the Order summary component challenge
Order summary component with Flexbox/Grid
@MattJones0813

Solution retrospective
In the media query
@media (max-width: 29em) { html { font-size: 50%; }
I wrote:
.hero-img { transform: scale(0.8, 0.8); height: auto; object-fit: contain; }
Could there have been a better solution by making the image fit the div instead of transforming the image size?
Code
Loading...
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Matt Jones's solution.
Join 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