html - Inline-block + min/max-width behavior -


I see in many browsers (FF, Opera, IE) that I "inline-block" and " / Max width ", their width is automatically set to" minimum-width ", and not maximum-width as expected. Is this normal behavior?

Can I sort it in CSS mode (max-width inline block element)? (I know about floats / tables / js, there are some reasons like this) = "Text">

You are facing a valid behavior minimum-width means That width can not be less than minimum-width On the other hand, max-width means that width is not greater than max-width value (But it may be less). Thus if you specify minimum width and max-width on an empty element, its width is set to minimum width . >

Comments