Sunday, March 25, 2012

Re: Background image

This did not work for me ... I am trying to apply this style to a canvas but for some reason the image just won't show.

On Monday, October 20, 2008 11:47:32 AM UTC-10, Bryan wrote:
hey there,

You can just add a css style to any panel.  For instance, i used
firebug to change the style on the box above so that there is a
repeating background image of the google logo.  The style looks like
this.  Screenshot http://drop.io/pytdu4r/asset/​background-repeat

.cb {
   background-image:url(http://​www.google.com/intl/en_ALL/​images/
logo.gif
);
}

In the gwt code, you would have something like this:
SimplePanel container;
container.setStyle("cb")

later,
bryan

On Oct 20, 7:56 am, "S. Oomes" <ulvengangs...@gmail.com> wrote:
> Hello everyone,
>
> I ám currently checking out GWT and im really impressed. The only
> thing i ren into was the fact that i did'nt get a background image in
> the application i was making. I want to use instead of the white
> background a image i made. It must repeat in the complete page as
> background. Is this possible to do and how do i do that.
>
> I dont have any experience at all with java but im going to learn that
> in my 4 semester (don't now the correct name) on my school. So if some
> one knows the awnser please explain exact where i need to place the
> code or code's. When you, the responder to this artikle, are dutch you
> can  mail me the dutch explanation in dutch. Or post it here when this
> is allowed of course!
>
> I'm looking forward to hear from you,
>
> Greetings S. Oomes

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/CXTU6e3loB0J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment