CSS force image resize and keep aspect ratio - Stack Overflow

PHOTO EMBED

Thu Jul 07 2022 01:35:19 GMT+0000 (UTC)

Saved by @anmolp15 #css

img {
  display: block;
  max-width:230px;
  max-height:95px;
  width: auto;
  height: auto;
}
content_copyCOPY

https://stackoverflow.com/questions/12991351/css-force-image-resize-and-keep-aspect-ratio