Quote:
Originally Posted by SBT
Despite my reservations about denoting image height in percentages, I think Turtle91's max-height:100% sounds like a good idea. Some reader systems interpret height percentages relative to the length of the document rather than the screen size, but using max-height like this wouldn't make the situation worse even in such cases.
|
Height of the containing element (and therefore the reference for % in height) is often undefined, and the result can vary from reader to reader. However, specifying max-height should never make the image larger than leaving it out, although it could make it smaller (and smaller than intended, in some cases).