I present the image in my div. I want to avoid stretching my image.
div { height: 300px; width: 300px; } img { min-width: 300px; min-height: 300px; max-height: 300px; }
My problem is that my image is fixed in width. I want to be normal width, although some images will be skipped.
div { height: 300px; width: 300px; overflow: hidden; } img { height: 300px max-width: none; min-width: 300px; }
I solved it.
source share