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

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -