Hello!
Here it is an example:
in your java class...
VerticalPanel verticalPanel = new VerticalPanel();
HTMLPanel w = new HTMLPanel(Greetings);
w.setStyleName(vp-htmlPanel);
verticalPanel.add(w);
in your css:
Hello!
We just wrote a post some days ago about how to implement this. You
can find the tutorial here:
http://blog.discovr.net/post/516021390/layout-your-app-using-gwt-2-0-the-way-you-want-it
We built this tutorial using UiBinder, so it should be straightforward
for you. Also you can download