views:

96

answers:

2

inside my css, i put

.someClass {
  width: literal("expression(this.width > 40 ? 40: true)");
}

is this correct syntax ? i tried ,but no result output when i debug with firebug on firefox. i try to make max-width working in ie6

+1  A: 

This may be helpful for achieving max-width with ie6: http://www.svendtofte.com/code/max_width_in_ie/

z00bs
the article didnt mentioned about this.width . and the article only guide on setting entire clientWidth . i only want to set maxwidth for one html element
cometta
yeah true, sorry. did you try the workaround with 'document.getElementById('id').offsetWidth' instead of 'this'? btw: did you submit this issue? http://code.google.com/p/google-web-toolkit/issues/detail?id=5337
z00bs
+1  A: 

this may be a case for doing this outside of the CSS, in JavaScript. Or if you're doing a lot of DOM manipulation then maybe consider using jQuery.

Moin Zaman