Jukka "Yucca" Korpela wrote: > I've seen many references to the trick of setting maximum > width on IE 6 > and older using an expression(...) value for width. The > details vary in > the descriptions of this trick, but the common way is > something like > > expression(this.width > 300 ? "300px" : this.width) > > For some odd reason, I cannot make this work. Demo: > http://www.cs.tut.fi/~jkorpela/test/expr.html > > The problem might be this.width, but what's wrong with it > and how to > replace it? (I know this is strictly speaking a JScript > issue rather than > CSS, but the trick is part of common CSS netlore.)
I think you are running into a loop here. The Expression should refer to an element outside "this" like: expression(document.body.clientWidth > 500 ? "300px" : "auto"); Regards, Rainer -- www.rohschnitt.de ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/