Design comparison
SolutionDesign
Solution retrospective
I had a problem with adjusting the img. The rest is ok.
Community feedback
- @NatureSon22Posted over 1 year ago
You can easily change an image's source using a media query, which lets you adapt the image for different layouts. Here's how you can do it in CSS:
@media (min-width: 500px) { img { content: url(path of the new image); } }
This media query will apply when the screen width is at least 500 pixels. It changes the image's source to the specified path, so it fits better in that layout.
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