Sunday, April 6, 2014

Re: css background image

No, it doesn't work. But still thaks for your reply). Maybe you have any other suggestions?

суббота, 5 апреля 2014 г., 23:29:02 UTC+4 пользователь Jos Flores написал:
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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment