You could use the CssResource + ClientBundle.

It is "inlined" in the HostedPage, so you probably will not have
problems with the standard.css.

You simply call the addStyleName passing the result of a function
call.

Check out the link to get more information:

http://code.google.com/intl/webtoolkit/webtoolkit/doc/latest/DevGuideClientBundle.html

On 16 jun, 07:57, Magnus <[email protected]> wrote:
> Hi,
>
> I usedCSSand setStyleName to style my widgets, until I found out
> that my widgets look less cool when I do that. I now understand that
> each widget has aGWT-style (e. g. ".gwt-Button") and that I overwrote
> this with my own style.
>
> So what is the way one should useCSS? Is it possible to "inherit" a
> style into another style, e. g. "my-button" inherits "gwt-Button", so
> that I just add my adjustments?
>
> Another question in this context: The MenuBar within theGWTwidget
> gallery looks much cooler than mine. But I did not apply any styles at
> all. What's the reason for this?
>
> Magnus

-- 
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