Lady_M
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 .documentE lement.cli entWidth < 1005) ? "985px" : "auto");
width:expression((document .documentE lement.cli entWidth > 1280) ? "1260px" : "auto");}
Note: the width is -20px for the IE scroll bar.
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
width:expression((document
Note: the width is -20px for the IE scroll bar.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
For example, you could try to nest one expression like this:
width: expression((document.docum entElement .clientWid th < 1005) ? "985px" :
(( document.documentElement.c lientWidth > 1280 ) ? "1260px" : "auto"));
width: expression((document.docum
(( document.documentElement.c
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
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
ASKER