Reputation: 71
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.
Upvotes: 1
Views: 393
Reputation: 449395
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
Upvotes: 1
Reputation: 15985
it also a good practice to hold the size of an image list that contains landscape and portrait format
Upvotes: 0