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
2010-08-25 17:35:52
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
2010-08-25 17:42:19
Just use a `PushButton` with text, and use CSS to add the image.
Jason Hall
2010-08-25 22:01:28
A:
Well as far as I understand after some investigation, the only way is to implement own CustomButton.
Konstantin Burov
2010-08-30 04:05:57