Design comparison
SolutionDesign
Solution retrospective
I found adding the images for the desktop and mobile challenging . Any help on how it can done smoothly
Community feedback
- @AlfredoPegueroCPosted 9 months ago
Hello, @OketchOdanga
There is a tag that offers alternative versions of the same image for different displays. It's called the 'picture' tag.
Here is the example Picture tag in mdn.
I hope it helps
Marked as helpful1@OketchOdangaPosted 8 months ago@AlfredoPegueroC Thanks for your feedback. I have read the article and will try to implement it in my future projects.
I have a question. Is it better to user background property in css for the image if the desktop and mobile layout are different? As in this case?
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