Re: GWT Button style using HTML - Mozilla Compatibility

2009-09-24 Thread abhiram wuntakal
Hi Zak, Thanks for that. But i was planning to have uniform style for all the buttons. I have some 15-20 different kinds of buttons. I dint want to write a separate CSS for each of them. I just realized that using HTML would be a really convenient way of implementing the icons for buttons. An

Re: GWT Button style using HTML - Mozilla Compatibility

2009-09-24 Thread Zak
The CSS for the background declaration is invalid. Also there's no need for tabs and carriage returns. Try this: button.setHTML(" Home "); The best practices solution, however, is to have an external stylesheet with styling rules defined: .cool-button { background: transparent url(home.gif) n

Re: GWT Button style using HTML - Mozilla Compatibility

2009-09-24 Thread abhiram wuntakal
I got some really cool styles with HTML tags and so thought of sticking on to it. Any idea why the image which I set on the button using HTML did not appear in Firefox? regards, Abhiram On Thu, Sep 24, 2009 at 4:55 PM, Venkatesh Babu wrote: > Try setting the style using a css class rather than t

Re: GWT Button style using HTML - Mozilla Compatibility

2009-09-24 Thread Venkatesh Babu
Try setting the style using a css class rather than the "style" attribute, in the way specified in your code. If you don't have a css file, you can just create the css class within your html file. Hope this helps. -Venkatesh On Thu, Sep 24, 2009 at 2:08 AM, abhiram wrote: > > Hi all, > > I

GWT Button style using HTML - Mozilla Compatibility

2009-09-23 Thread abhiram
Hi all, I used the setHTML property for the Button to get some really nice styles for the buttons in my application. This works perfectly in IE but does not seem to work in Mozilla and Chrome. In Mozilla and Chrome I dont see the images on the button which are visible on IE. My sample code i