Link to home
Start Free TrialLog in
Avatar of Lady_M
Lady_MFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Max and Min height in IE6

Hi

I'd like this to work in IE6:

#outerWrapper {
      float:left;
      margin: 0 auto 0 0;
      max-width: 1280px;
      min-width:1005px;
      min-height:400px;
      height:auto;
}

I have tried adding this to my IE css file with no luck.  Could somebody explain the problem please?
Thanks

#outerWrapper {
      width:expression((document.documentElement.clientWidth < 1005) ? "985px" : "auto");
      width:expression((document.documentElement.clientWidth > 1280) ? "1260px" : "auto");}

Note:  the width is -20px for the IE scroll bar.
Avatar of Lady_M
Lady_M
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

Sorry, the title should be max and min width.  I don't care about the height.
Avatar of TName
TName

I don't think you can have both expressions. The second one will overwrite the first one, so you will never have 985px...
ASKER CERTIFIED SOLUTION
Avatar of TName
TName

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
For example, you could try to nest one expression like this:

width: expression((document.documentElement.clientWidth < 1005) ? "985px" :
               (( document.documentElement.clientWidth > 1280 ) ? "1260px" : "auto"));


Avatar of Lady_M

ASKER

Hi TName
Well it's weird but it seems to have started working in IE now after other unrelated amendments.
But I take your points on board and that makes sense.  I will keep a hold of what you've written in case it stops again.
Thanks