CSS IMG Scale Down
/*for scaling down */
img {
max-height: 70px;
max-width: 70px;
object-fit: scale-down;
}
Helpless Heron
/*for scaling down */
img {
max-height: 70px;
max-width: 70px;
object-fit: scale-down;
}
.container {
width: 50%;
height: 200px;
overflow: hidden;
}
.container img {
max-width: 100%;
height: auto;
display: block;
}
<div style="width: 200px; height: 200px;">
<img src="imagen\imagen1.jpg" style="width: 100px; height: 100px;"/>
</div>
img.resize {
width: 540px; /* you can use % */
height: auto;
}