Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

All comments

  • @lazza24

    Submitted

    The biggest challenge was to change the image while using @media queries. The solution was to put both images on mobile size with two classes and use display none depending of size

    @sam-mantey

    Posted

    Hello Lazar Ristic. You have done a great job so far.

    Try using the <picture> tag when you need to change images based on different devices. This prevents the web browser from loading both images and hence reducing bandwidth.

    **Example

            <picture>
              <source  media="(min-width: 625px)" srcset="images/image-product-desktop.jpg">
              <img  src="images/image-product-mobile.jpg" alt="">
            </picture>
    
    0