Comments on: HTML Buttons with an image Friends of Oracle and Java Thu, 21 May 2015 20:49:51 +0000 hourly 1 By: Zoltan Andrasi Thu, 18 Jan 2007 11:20:05 +0000 /?p=145#comment-716 What do you think about collapsing the button [input type=”button” id=”pushButton” accesskey=”p” style=”visibility:collapse” /] and replacing it with a label assigned to it: [label for=”pushButton”][u]P[/u]ush me![/label]

By: Sun, 13 Nov 2005 21:05:53 +0000 /?p=145#comment-715

By: leon Thu, 02 Sep 2004 07:17:25 +0000 /?p=145#comment-714 Good points! I hadn’t thought of the accesskey not being present on the text on the button in some languages !

By: James Wed, 01 Sep 2004 22:34:20 +0000 /?p=145#comment-713 oops. html allowed.

anyway you’d be better off to write a custom tag do do this button for you.

you could define the accesskey, and if the accesskey was not found in the word to be displayed, display the accesskey afterwards in brackets:


someForeignWord [p]

By: James Wed, 01 Sep 2004 22:32:10 +0000 /?p=145#comment-712 having to create an image for every button is a bit of a bummer.

Maybe you could try something like:

push me

use css to style is into a square button..