As soon as I sent I thought of this.
> width: expression(document.body.clientWidth > 310 ? "300px" : "auto" );
> margin: 10px expression(document.body.clientWidth > 310 ? "auto" : "10px"
) 10px 10px;
>
> You might expect "10px auto 10px 10px" to work but
> it doesn't; the expression has to be there.
Yes it does, but this is all the expression has to say:
margin: 10px expression("auto") 10px 10px;
It just seems to need to reapply the "auto" that gets lost at some point.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/