Hello everyone.

I´m using
        width: 45em
        width:expression(((document.compatMode &&
        document.compatMode=='CSS1Compat') ?
        document.documentElement.clientWidth :
        document.body.clientWidth)>(522/12)
        * parseInt(document.body.currentStyle.fontSize)?
        "45em" : (((document.compatMode &&
        document.compatMode=='CSS1Compat') ?
        document.documentElement.clientWidth :
        document.body.clientWidth) < 522 ? "520px" : "99%"));}

to emulate max-width in IE. It is not valid CSS but it works, and as
I´ve seen in past e-mails which I attach, the dirty line is only read
by IE (yes, the irony).

What do you think? I don´t like it, I´m not comfortable using it. This
site is not using a special IE stylesheet and I don´t want to start
using one! Shall I leave it? Testing in different browsers works as I
want, but I just want to make things the best I can.

Well, asking for your knowledge here!
Thank you very much;
Eugenio.


On 7/30/06, Designer <[EMAIL PROTECTED]> wrote:

CK wrote:
> Good example, all the code groks, except this:
> _width : expression(document.body.clientWidth >748? "750px": "auto" );
>
> Would you shed some site on this rule, is this part of CSS 3?

It's not CSS 3, it's part of microsoft's expressions. It's ignored by
all browsers apart from IE.

Normally I use a conditional comment to hide such things, and in fact if
you 'view source' on the standards example you'll see some there. (I
have to thank Georg Sortun [http://www.gunlaug.no/#] for help with such
things!)


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to