Design comparison
SolutionDesign
Solution retrospective
How the image has to be placed?
- using "cover" for background-size crops the image
- using "contain" compress image to fit
- using manual dimensions, will stretch the image or squezz the image to fit in those dimensions. Is there any better way?
Community feedback
- @SaiChandra2896Posted over 3 years ago
Instead of using it as a background image you can use normal image and use object-fit property
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