img height auto 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: CSS change image height
/*Search Term: "CSS change image height"*/
img {
height: /*Add height here*/;
}
/*Example*/
img {
height: 200px;
}