You can try using quotes around the name of the image, and using a relative 
path. something like:
background-image: url("img/wood.jpg");

note that there is no / before img (a relative instead of an absolute path 
to the image). Would that work?


On Saturday, 5 April 2014 13:17:05 UTC-4, Dima Redko wrote:
>
> Hello everyone) I've recently faced a problem. I don't know how to set the 
> background of the page using css (not in java code) while using GWT 
> framework.
> What I did:
> 1) I've created a folder named img in the war folder of my gwt project
> 2) Then I've coppied there a    .jpg image called "wood.jpg".
> 3) Then in my css file I've got the following written:
>
> body{
>  background-image: url(/img/wood.jpg) repeat;
> } 
> 4) Surely I've added a link to that css file in my HTML Welcome page
>
> When I run this project the background is white. My java code has nothing 
> that affects the backround.
> So, would you please help me to handle this problem?
> Thanks in advance)))
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to