There are lots of ways, but basically, create a label you manage a bit....

Label mylabel = new Label("myText");
mylabel.addStyleName("test");

Then in your css:
.test { font-size: 10pt; }

This sets a CSS class so you can make it do whatever you want...

Of you could put a class on the container to limit the built-in class
(gwt-Label) that's assigned to the Label widget.

lc.addStyleName("mycontainer");

and in your CSS:

.mycontainer .gwt-Label { font-size: 10pt; }

This would set all labels in the container to use the same.

If you want the Label to use a span instead of a div, use InlineLabel.

Hope this helps... but you really should understand HTML/DOM and CSS a bit
before you attempt to program w/ GWT.  I'm certainly no expert myself.

--

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