Hello,
yes, i know, but the problem is that:
ToggleButton has its predefined style gwt-Togglebutton or similar.
That style defines a background-image for the button.
In order to set a background color i need to get rid of the background
image.
So i defined a style
.color-icon {
  height: 16px;
  width: 23px;
  background-image: none;
  background-color: #777777;
}
and added it with
  button.addStyleName("color-icon");

The size is taken into account, but not the background color.
The image is still there.
How can i get rid of the background image of the default style?


On Jun 5, 4:44 pm, Piro <[email protected]> wrote:
> Use CSS to style buttons.
>
> http://code.google.com/intl/sk-SK/webtoolkit/doc/latest/DevGuideUiCss...
>
> On 4. Jún, 17:10 h., Lars Ruoff <[email protected]> wrote:
>
>
>
>
>
>
>
> > Hello,
>
> > how to change the background color of a ToggleButton?
> > I want to have ToggleButtons in various colours displayed on my page.
> > The buttons are actually for choosing a color in the application.
>
> > regards,
> > Lars

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to