"Unknown User" <me@privacy.net> wrote in message news:<op.sm4hokjer3xrds@cinza>...[color=blue]
> Today I added this rule to my web site:
>
> #container {
> min-width: 950px;
> width:expression(document.body.clientWidth < 950? "950px": "auto" );
> }
>
> And it crashes IE when the width of the window is less than 950px :(
> How would you correct it?[/color]
I ran into this the other day, after finding the technique at
http://www.svendtofte.com/code/max_width_in_ie/ - I found the
expression was only working when the document was missing a doctype,
thereby putting IE in quirks mode. The solution when in standards mode
is to have something like:
width:expression(document.body.clientWidth < 950? "940px": "auto" );
instead of what you have above.
You could also try this Javascript solution:
http://www.doxdesk.com/software/js/minmax.html
This lets you use min/max-height and min/max-width seamlessly, though
does rely on IE users having Javascript enabled for it to work.
Hope that helps,
paul haine
http://joeblade.com/ http://design.joeblade.com/