View Single Post
Old 03-03-2013, 09:53 AM   #6
SBT
Fanatic
SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.
 
SBT's Avatar
 
Posts: 580
Karma: 810184
Join Date: Sep 2010
Location: Norway
Device: prs-t1, tablet, Nook Simple, assorted kindles, iPad
I agree with your understanding of what width:100% implies

max-width:100%; implies that the image will never exceed, i.e. spill over, the screen width. Say you have a screen with vertical resolution 300px, then defining max-width will ensure that the image is scaled down when necessary.

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.
SBT is offline   Reply With Quote