hi fmod!

it is possible, but not out of the box nor easy to implement nor good
practice.
just use a composite rule with some parent like the body element, ie.

.longItems .myRule {
width: 500px;
}

and do:
RootPanel.getBodyElement().setClassName("longItems");

of course, using a css resource bundle instead of the literal...

HTH
Michael


On May 28, 7:39 pm, fmod <[email protected]> wrote:
> Hi, is there a way to change a CSS Property inside a Rule definition
> on the fly.
>
> I have defined a rule
>
> .myRule {
>   height: 22px;
>   width: 100px;
>   overflow: hidden
>
> }
>
> I have hundreds of DIV elements with that rule.
> I will like to change the width property directly on the rule. Without
> iterating all the elements and
> inlining the new width.
>
> Is that possible?
>
> Thank you

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to