I know we've been over this, but can someone tell me what I'm doing wrong. I used the trick shown here (<!-- m --><a class="postlink" href="http://www.svendtofte.com/code/max_width_in_ie/">http://www.svendtofte.com/code/max_width_in_ie/</a><!-- m -->) , but when you attempt to resize the browser smaller than the minimum defined it crashes IE for me. Check it out (<!-- m --><a class="postlink" href="http://aacofa.com">http://aacofa.com</a><!-- m -->) for yourself.
This is the style in question:
#container {
margin: 20px 11em 20px 20px;
background-color: #FFFFFF;
min-width: 575px;
width: expression(document.body.clientWidth < 575 ? "575px" : "auto" );
}
Thanks for any help.Hi -
I saw absolutely no layout problems with IE6, so I'm not sure which vers. you'd checked prior.
Since min-max height and width aren't very widely supported yet, (CSS2) it seems as if as long as your page is 'flexible design', should get close to what you need without them. (Although I've had success on Moz. and IE using those properties for overflow:scroll centered paragraphs.)
Looked good to me,
ElYes IE crashes big time.
If you use the expression for max-width and reverse the condition to less than you get the min-width value.Thanks for your feedback.
I'm using IE6. When you resize the browser to a smaller size it crashes.
I tried reversing the logic, but it still crashes. Thanks anyway.This one doesn't crash IE:
width:expression(document.body.clientWidth < (500/12) * parseInt(document.body.currentStyle.fontSize)? "30em":"auto" );Interesting workaround, but it still crashes for me. I think I'll just hardcode the width for IE browsers.
Thanks for the help, though.Works for me IE 5+ XP
This is the style in question:
#container {
margin: 20px 11em 20px 20px;
background-color: #FFFFFF;
min-width: 575px;
width: expression(document.body.clientWidth < 575 ? "575px" : "auto" );
}
Thanks for any help.Hi -
I saw absolutely no layout problems with IE6, so I'm not sure which vers. you'd checked prior.
Since min-max height and width aren't very widely supported yet, (CSS2) it seems as if as long as your page is 'flexible design', should get close to what you need without them. (Although I've had success on Moz. and IE using those properties for overflow:scroll centered paragraphs.)
Looked good to me,
ElYes IE crashes big time.
If you use the expression for max-width and reverse the condition to less than you get the min-width value.Thanks for your feedback.
I'm using IE6. When you resize the browser to a smaller size it crashes.
I tried reversing the logic, but it still crashes. Thanks anyway.This one doesn't crash IE:
width:expression(document.body.clientWidth < (500/12) * parseInt(document.body.currentStyle.fontSize)? "30em":"auto" );Interesting workaround, but it still crashes for me. I think I'll just hardcode the width for IE browsers.
Thanks for the help, though.Works for me IE 5+ XP