I have different images and I want to keep them in a same height and width.
My code structure is:
<figure>
<img src="..img/image.png" />
</figure>
I have about four of these elements.
My css are:
figure{
overflow: hidden;
max-height: 200px;
}
.thumbnail figure img {
max-height: 200px;
position: relative;
left: 50%;
transform: translateX(-50%);
}
This is helping me to keep the same height and width.
But the problem is:
If i place a image with large pixel ratio it looks large. For example, if I use a pic with a man with high resolution, it shows only the eyes and nose.
What can I do now?