Oh, so that's what getStyle does, I thought it was getting the class
name because setStyleName sets the calss name.

Thanks.

On 24 מרץ, 23:11, Olivier Monaco <olivier.mon...@free.fr> wrote:
> Hi,
>
> Did you try something like:
>
> Document.get().getBody().getStyle().setBackgroundColor(...);
>
> Where Document is com.google.gwt.dom.client.Document.
>
> Olivier
>
> On 24 mar, 20:48, Shedokan <shedok...@gmail.com> wrote:
>
> > How can I do in GWT this:
> > document.body.style.background = "red";
>
> > I'm trying to change the background color of the body element without
> > adding a special class to the body or any of that external css.
>
> > Thanks.

-- 
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.

Reply via email to