css how to scale an image code example
Example 1: Scaling Images and Videos css
.container {
width: 50%;
height: 200px;
overflow: hidden;
}
.container img {
max-width: 100%;
height: auto;
display: block;
}
Example 2: scale down image css
img.resize {
width: 540px; /* you can use % */
height: auto;
}
Example 3: CSS shrink image
<div style="width: 200px; height: 200px;">
<img src="imagen\imagen1.jpg" style="width: 100px; height: 100px;"/>
</div>