public class StyleTest implements EntryPoint
private final AbsolutePanel absolutePanel = new AbsolutePanel();
private final Label lblNormalLabel = new Label("Normal Label");
private final Label lblGreenLabel = new Label("Green Label");
public void onModuleLoad()
RootPanel rootPanel = RootPanel.get();
rootPanel.add(absolutePanel, 10, 10);
absolutePanel.add(lblNormalLabel, 30, 24);
absolutePanel.add(lblGreenLabel, 30, 82);
and the CSS entry:
I would expect lblGreenLabel to be green, centered, larger and bolded. However it is identical to lblNormalLabel in appearance. What am I doing wrong or how do I get lblGreenLabel to accept the styles I want?--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
To post to this group, send email to firstname.lastname@example.org.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.