overflow - Css element Max-Size -
what major differences in using these css rules
div{width:100px; overflow:hidden;}
and
div{max-width:100px; overflow:hidden!important;}
is there going cross-compatibility issues.
max-width
great stating "don't go bigger this, it's ok if it's smaller".
this might great if doing speech bubble dynamic in size (depending on content) , wanted div surrounding speech bubble vary.
width
on other hand says "the must 100px", means if content within div smaller, surrounding div still 100px.
example: http://cdn.gottabemobile.com/wp-content/uploads/2013/10/photo1.png
Comments
Post a Comment