1. This website uses cookies. By continuing to use this website you are giving consent to cookies being used.
    For information on cookies and how you can disable them visit our Cookie Usage page.
    Dismiss Notice

CSS Do you still use MIN/MAX-WIDTH and MIN/MAX-HEIGHT

Discussion in 'Web Development' started by mateiu_lk, Sep 19, 2009.

  1. mateiu_lk

    mateiu_lk New Member

    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 ?
     
  2. ishkey

    ishkey Moderator, Logos, Sports Crests Staff Member Verified Member

    Couldn't live without them - MIN/MAX-WIDTH and MIN/MAX-HEIGHT
    IE6 was born in 2001 so I wouldn't look back any further. You code for today not for those frozen in time. This javascript "minmax.js" has worked for me for a long time and has been out since 2003 http://www.doxdesk.com/software/js/minmax.html
    The nice thing about the java method is you can easily go back later to remove it when the old browsers are gone or just wrap it up in one main js file with all your other library scripts and have one call on the page.

    or you could go the seperate css file hack method
    or you could write it like this
    The problem with Conditional Comments: <![if IE]> ... <![endif]> . Not only does it look ugly, it doesn't even validate!