Design comparison
SolutionDesign
Community feedback
- @elaineleungPosted over 2 years ago
Hi M Irfan, congratulations on completing your first challenge! On your image, try changing the
object-fit
fromcontain
tocover
, and for the height, tryheight:100%
instead ofauto
. If you have that, then for the image containerimage-div
in your mobile view, you can try adding a height to make it shorter (but be sure to unset the property in the desktop view).Good luck, and once again, welcome to the Frontend Mentor community 🙂
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