On 31 août, 11:14, vruddhi shah <[email protected]> wrote:
> Hello All,
>
> I have implemented gwt buttons to change color of  button's background. I
> have changed button background color using DOM.setStyleAttribute. It is not
> working in mozilla (button color is not chaged) . Please help me out. I have
> attached the code.

You're setting the "default" color on a <div> within the button (wow!
a <div>?! why not use a <span>? but, well, as already said by Dominik,
you'd rather use CSS classes and the addStyleName/removeStyleName
methods) and trying to override it by setting the style on the
<button>: the <div> will have precedence.

Look at the generated DOM with Firebug, Web Inspector, Internet
Explorer Developer Tools or whatever, it'll become obvious.
--~--~---------~--~----~------------~-------~--~----~
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