html - Stretch image input and then fit to its container's width - Stack Overflow

PHOTO EMBED

Tue May 11 2021 16:55:41 GMT+0000 (UTC)

Saved by @bilgehanevren #css

<input type = "image" src = "@ Url.Content (topRated.Value)" onclick = "this.form.submit" class = "resize" width = "175" height = "250">

img.resize {
    width: 175 pixels;
    height: 250 pixels;
}
content_copyCOPY

this is a cool example for positionin

https://stackoverflow.com/questions/64323678/stretch-image-input-and-then-fit-to-its-containers-width