Re: gwt and css
On Sun, Apr 15, 2012 at 14:19, gwt-newbie <jbergmanster@gmail.com> wrote:
> Hi all,
>
> Typically, I use ids and id scoped styles for child elements of that id to
> control how they look when contained by that id. However, this doesn't seem
> to work well in gwt. There appears to be no support to set fixed ids for
> widgets in the ui binder other than debugId. Also does the ui:style element
> even support # styles since it mangles names of classes?
>
> How do gwt veterans style their views? It appears that with gwt one is
> forced to use classes to style most things and then setting classes on child
> widgets to change the look based on the container it appears in.
>
> Thanks for any guidance on this matter.
What's the reason you don't want to use classes?
.theme1 .myWidget {
background-color: red;
}
.theme2 .myWidget {
background-color: black;
}
The above code snippet seemed a lot easer than using IDs
-- Joe
--
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