Use addStyleName() method and use your own class to override the properties declared by gwt-Button
2010/6/16 Magnus <[email protected]> > Hi, > > I used CSS and 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 a GWT-style (e. g. ".gwt-Button") and that I overwrote > this with my own style. > > So what is the way one should use CSS? 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 the GWT widget > 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]<google-web-toolkit%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- 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.
