Design comparison
SolutionDesign
Solution retrospective
In order to make the hero image responsive, I had to include a media query by using picture and source in the HTML file.
However, I want all the media queries in the CSS. I tried CSS background images, but it was impossible because I had to set a specific height to the image.
Is there a way to achieve the same thing by only using CSS?
Thanks a lot!
Community feedback
- @hebrerilloPosted over 2 years ago
I forgot to say that I also welcome general feedback, thanks!
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