Re: GWT and CSS
Hi Magnus,
> 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?
just try to use addStyleName() instead of setStylePrimaryName(). By
this you preserve the default standard.css styling of your elements
and you can add additional formatting. More specific, the button would
still have the class gwt-Button followed by your specific class which
you can add to any CSS file linked in the main page.
However, as GWT adds its standard.css as last css file you may still
experience strage overruling of your styles (using Firebug helps to
understand what is overruled by what).
If that standard.css overruling is an issue for you, my blog post
"GWT's standard.css killed my page layout" may help you:
http://ililiililililii.blog.de/2010/05/12/gwt-s-standard-css-killed-my-page-layout-8574576/
Sven
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home