@Aatypic
Posted
Hello and congratulations on your solution I like it !
Concerning your questions.
-For you media I would change the breakpoint of max-width:375px
to something bigger, because right now when the screen is 376px wide it's changing to the desktop image, and the device is still very small and hasn't changed really.
-You were close, you had your <picture>
element already. You can in fact give multiple sources for different media screen sized in a <picture> tag.
You need to add a second <source>, for something like this:
<picture>
<source media="(max-width:768px)" srcset="images/image-mobile.jpg />
<source media="(min-width:769px)" srcset="..."/>
<img src="images/image-dekstop.jpg" alt="...">
</picture>
more info about <picture>
Good luck 🙂
Marked as helpful
@Nondaba
Posted
@Aatypic ,Thank you for the observation. Let me update my code so that it is correct.
@Aatypic
Posted
@Nondaba After checking I don't think you need 2 <source> 😅
The way you set it was right, just bigger breakpoints will help.
@Nondaba
Posted
@Aatypic ,😂 no worries. I am going to read up on break points.