#how am i meant to handle the width and height attributes in images?

1 messages · Page 1 of 1 (latest)

trail leaf
#

the images of my site do not have a constant size, which doesn't really matter because the css is set to width: 100% and height: auto
but i would like to reduce my CLS by setting sizes to the img tag, how do I go about this?

in the desktop layout, it's 700x500 but in the phone layout through devtools it's 300 x 200,

humble timber
#

so like next js image

#

is that what your looking for

#

nvm

#

sorry I think u can do this with html

#

like this

#

has everything you can know about the img tag