
Design comparison
SolutionDesign
Community feedback
- P@Lo-DeckPosted 3 months ago
Hi well done for this challenge,
You can use picture tag to display different image depending on the size. Here a link : MDN.
<picture> <source media="(max-width: 799px)" srcset="your path" > <source media="(min-width: 800px)" srcset="your path" > <img src="your path" alt="your description" > </picture>
It's better to use
em
orrem
instead ofpx
. FreeCodeCamp. FreeCodeCamp. YoutubeIt's easier to start with a mobile-approach FreeCodeCamp.
Hope to be helpful.
Marked as helpful1
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