View Single Post
Old 04-14-2016, 07:48 AM   #18
mmat1
Berti
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 1,197
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
Quote:
Originally Posted by Notjohn View Post
What does max-width:100% do that width:100% doesn't?

Keeps it from running off the "page," I suppose, but why would it do that?
Hi,
max-width/height are limits, which the picture must not exceed.
width: 100% sets the picture to the maximum size within these limits.

Consider, that there are 4 modes of viewing:
- the picture could be in a landscape or a portrait-shape.
- the user could have his device in portrait oder landscape-mode

the css should be fine for all 4 .
mmat1 is offline   Reply With Quote