I see in many browsers (FF,Opera,Ie) that elements I give them “inline-block” and “min/max width” , their width is automatically sets to “min-width”, and not max-width, as expected.
Is that normal behavior?
Can I solve it in css way (inline-block element with max-width)?
(I know about floats/tables/js, there are some reasons i need do it in this way)
You are encountering a valid behavior.
min-widthmeans that the width cannot be less than themin-widthvalue. On the other hand,max-widthmeans that the width cannot exceed themax-widthvalue (but it can be less). Thus if you specify bothmin-widthandmax-widthon an empty element, its width is set tomin-width.