Thanks for your suggestions. I have tried all your suggestions but still
nothing is displayed. I tried stepping through the code after
onModuleLoad() but could not find anything suggestive of a problem.

2011/11/14 gerry <gtzoga...@gmail.com>

> Hi,
>
> You have to put your images and other static files inside the war
> directory. And mind the fullstop (.) before the css rule:
> .appbackground {
> background-image: url   (images/background.jpg); // provided that you
> have an the forlder images under war folder
> width: 80%; height: 80%;
> border: 10px solid red; // You have to separate those with a space, I
> don't think comma is working
> }
>
> On 13 Νοέ, 17:51, Jonathan Gossage <jgoss...@gmail.com> wrote:
> > I am a complete beginner with GWT and web development generally and I
> > trying to build a GWT app using baby steps so I can understand each
> > step. I have created a tiny app that simply as a styled layout panel
> > in the RootPanel. My code in onModuleLoad is:
> >
> >         public void onModuleLoad() {
> >                 LayoutPanel p = new LayoutPanel();
> >                 p.setStylePrimaryName("appbackground");
> >                 RootLayoutPanel.get().add(p);
> >                 p.setVisible(true);
> >         }
> >
> > and I have the following entry in the application style sheet:
> >
> > appbackground {
> > background-image: url   (WEB-INF/images/background.jpg);
> > width: 80%; height: 80%; border: 10px,solid,red;
> >
> > }
> >
> > My problem is that I do not see any evidence of the styling in the
> > displayed web page. I have verified that the onModuleLoad() method is
> > being called. Can anyone spot what I  could be doing wrong:
> >
> > Jonathan Gossage
>
> --
> 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-toolkit@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.
>
>

-- 
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-toolkit@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