Design comparison
SolutionDesign
Solution retrospective
I was having problem with switching image form mobile to desktop.
Community feedback
- @UtopicUnicorn995Posted over 1 year ago
Hi,
I think you can use media queries in css where you change the image url OR you could create 2 <img></img> in HTML and use this:
.mobile--img{ display: none; } @media (max-width: 767px){ .mobile--img{ display:block; }
same with the desktop img.
There's many ways to fix your problem
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