I want to show an image from an URL with a certain width and height even if it has a different size ratio. So I want to resize (maintaining the ratio) and then cut the imag
.imgContainer { overflow: hidden; width: 200px; height: 100px; } .imgContainer img { width: 200px; height: 120px; }
The containing div with essentially crop the image by hiding the overflow.