@Hassiai
Posted
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 helpful
@AngeloMar98
Posted
@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