
Design comparison
SolutionDesign
Community feedback
- @SpecroPosted 4 months ago
You can use the HTML picture element to switch the mobile image without the need to use JS e.g.
<picture><source srcset="desktop.jpg" media="(min-width: 768px)" /><img src="mobile.jpg" /></picture>
. Good job making it responsive👍Marked as helpful0
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