html - width:100% vs max-width: 100% -


width can be: 100% and maximum-width: 100% can be used once if any of them Is used only once?

For example, I get the following results:

  img {width: 100%; }   

and with:

  img {max-width: 100%; }   

Am I missing something here?

If your images are always higher than they are both within the rules, behaviors Will appear to If an IMG is shorter than the original element than the first rule, then its parents will extend to the full width. The second will not be the rule.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -