Design comparison
Solution retrospective
Teached me I should find good ways to deal with images, especially on smaller screens
Community feedback
- @HassiaiPosted over 1 year ago
For a responsive image, that will shrink the image on smaller screens, give the img a max-width of 100%.
Use relative units like rem or em as unit for the padding, margin, width values and preferably rem for the font-size values, instead of using px which is an absolute unit. For more on CSS units Click here
Hope am helpful.
Well done for completing this challenge. HAPPY CODING
Marked as helpful1@AngeloMar98Posted over 1 year ago@Hassiai Thanks! My main struggle has been defining both max-width and min-width, as I didn't want the image too shrink too much when the window got too small. On the other hand, I'm not still knowledgable with media queries, that'd help in changing the layout and have the image take the whole width
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