@RKennedyy
Posted
Hey, this is a great attempt!
You can use the <picture> tag in html and you can set different images based on the size like so :
<picture> <source srcset="photo1.jpg" media="(min-width: 900px) /> <source srcset="photo2.jpg" media="(max-width: 600px) /> <img src="photo.jpg" alt="photo" /> </picture>If the media is at least 900 px then photo1 will be displayed, if the media is at most 600px then photo2 is displayed.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture
Marked as helpful