tags:

views:

42

answers:

2

Does anybody know of a way to make a push button with text on top of an image?

A: 

Regular HTML <button>s don't support adding images to them. You'll have to use a regular <div> with a background image and text, styled to look like a button.

Jason Hall
I'm refering to GWT push button http://gwt.google.com/samples/Showcase/Showcase.html#!CwCustomButton it uses images. Also it can use text labels instead. But I wonder is there easy way to combine image and text on that, without implementing own custom button.
Konstantin Burov
Just use a `PushButton` with text, and use CSS to add the image.
Jason Hall
A: 

Well as far as I understand after some investigation, the only way is to implement own CustomButton.

Konstantin Burov