Responsive Product Preview Card WebPage

Solution retrospective
I would like to know if it's a correct way to change between images, when I want to specify what image I'll want to use to mobile or desktop, using display: none and display: block. I couldn't be able to use something like backgound-image property because it got always a blank space. If you have any other recomendations, I'll be gratefull.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Eduardo Godoi da Silveira's solution.
Join 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