Responsive images

  • So, this works. Dragging the window lower than 800px changes to image 1x:

            <source media="(max-width: 799px)" srcset="">
            <source media="(min-width: 800px)" srcset="">
            <img src="" style="height: 255px">

    but this from docs won’t work:

            srcset=" 799w,
            sizes="(max-width: 799px) 799w,
                  (min-width: 800px) 800w"
            style="height: 255px"
            <div class="absolute-bottom text-body1 text-center">
              With srcset & sizes

    what am i doing wrong?

Log in to reply