Quote:
Originally Posted by Notjohn
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 .