arundathi Posted January 11, 2010 Share Posted January 11, 2010 Title is wrong , correct one should be : Do you use MIN/MAX-WIDTH and MIN/MAX-HEIGHT ?? I am building a liquid layout with percentage and wonder if I have to use MIN/MAX-WIDTH and MIN/MAX-HEIGHT , knowing that IE 6 and earlier versions do not support it. Do you use them ? Is there any rule available to avoid the bug ? Link to comment https://forums.phpfreaks.com/topic/188021-do-you-still-use-minmax-width-and-minmax-height/ Share on other sites More sharing options...
soycharliente Posted January 11, 2010 Share Posted January 11, 2010 The only one I still use is min-height for dynamic content sections to be larger/longer when they have a less than optimal amount of text. Link to comment https://forums.phpfreaks.com/topic/188021-do-you-still-use-minmax-width-and-minmax-height/#findComment-992648 Share on other sites More sharing options...
haku Posted January 11, 2010 Share Posted January 11, 2010 minimum widths/heights are usually used to prevent a layout from squeezing to the point where it breaks. Maximum widths are usually used for preventing a site from getting overly stretched out on wide-screens. These selectors themselves don't work in IE6, but you can still make min and max sizes work in IE6. See this article for more info: http://javascript.about.com/library/blwidth.htm Link to comment https://forums.phpfreaks.com/topic/188021-do-you-still-use-minmax-width-and-minmax-height/#findComment-992774 Share on other sites More sharing options...
asunsha Posted January 22, 2010 Share Posted January 22, 2010 Yes Arundathi I still use those. You can avoid the bug by adding an empty(but with an ) div with a fixed size(e.g. 150px) to the container which has a min width/height and set the container to 100%. The container will be 100% or 150px(which ever is larger). For the maximum width/height there will probably be a similar solution but I never use max, I use just fixed sizes for that. Link to comment https://forums.phpfreaks.com/topic/188021-do-you-still-use-minmax-width-and-minmax-height/#findComment-999739 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.