Can't get auto-resizing to work, I must be missing something fundamental..

Comments

1 comment

  • Avatar
    Nadav Ofir

    Hi Gregory,

    The reason automatic responsive mechanism doesn't work here is that the client-hints are not being sent along with the request for the image.

    To fix this, you must make sure to add the 'sizes' attribute to the HTML <img> tag (e.g.: sizes="50vw")

    Does this work for you?

    0
    Comment actions Permalink

Please sign in to leave a comment.