When does it make sense to use max-height
or max-width
on an image?
Does it help if I don't specify the actual dimensions of the image because I don't know it.
When does it make sense to use max-height
or max-width
on an image?
Does it help if I don't specify the actual dimensions of the image because I don't know it.
it also a good practice to hold the size of an image list that contains landscape and portrait format
It makes sense when you have images of unknown width (for example, user uploaded content) that you do not want to exceed a certain area.
If I remember correctly, the property is not supported by IE6. It is however by IE7: Source