o.k., so how do you go about setting both max- and min-width at the same time?

I tried:

        width:80%;
        max-width:600px;
        min-width:400px;
        width:expression(((document.documentElement.clientWidth)) < 500 ? 
'400px' : '80%');
        width:expression(((document.documentElement.clientWidth)) > 750 ? 
'600px' : '80%');

And needless to say only the second expression got evaluated.... 

So, I tried (remove line breaks where required):

        width:80%;
        max-width:600px;
        min-width:400px;
        width:expression((document.documentElement.clientWidth < 500) ? '400px' 
: ((document.documentElement.clientWidth > 750) ? '600px' : '80%'));

Bingo!

Only works in IE 6, and only if 'active scripting' is enabled - at least on Win 
2k sp4 anyway...



cheers,
Geoff.







N���.�Ȩ�X���+��i��n�Z�֫v�+��h��y�m�����쵩�j�l��.����f���.�ץ�w�q����(��b��(��,�)උazX����)��

Reply via email to