Hie I am not using uibinder so tried above method,
But nothing happens. anything i m missing? I am sure i used the exact same code. Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com On Fri, Apr 16, 2010 at 2:21 PM, helguita <helgaalva...@gmail.com> wrote: > 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: > > .vp-htmlPanel{ > background-color:#FF0; > } > > If you are using UiBinder: > > <ui:style> > .vp-htmlPanel{ > background-color:#CC2A98; > } > </ui:style> > > <gwt:VerticalPanel> > <gwt:HTMLPanel > styleName="{style.vp-htmlPanel}">Greetings</ > gwt:HTMLPanel> > </gwt:VerticalPanel> > > > Hope it helps. > > -- > 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-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.