hitmorecode• 6,230
@hitmorecode
Posted
You can try this. With the picture element you can easily do this.
<div class="card">
<picture>
<source media="(min-width: 673px)" srcset="images/image-product-desktop.jpg" alt="">
<source srcset="images/image-product-mobile.jpg" media="(min-width: 375px)">
<img src="images/image-product-desktop.jpg">
</picture>
</div>
css
@media(max-width:673px){
Marked as helpful
0