Link to home
Start Free TrialLog in
Avatar of thomas610
thomas610

asked on

Multi-line button text

How can I create an input button containing visible text which spans multiple lines? For example: rather than "CLICK THIS BUTTON" being displayed on the button, it would look like this:
CLICK
 THIS
BUTTON

Thanx in advance for any assistance.

The only languages in this section (Web Languages) which I DO NOT use are: JSP and PHP.
Avatar of furtive
furtive
Flag of Canada image

The short answer is that you can't.

My suggestion would be to use an image for that sort of thing.

Another option, if you think an image would be a pain because it would need to be changed to change the button text, would be to use an image, but have the text as a div over the image.
ASKER CERTIFIED SOLUTION
Avatar of coreybryant
coreybryant
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of amit_g
Try this...

<HTML>
<HEAD>
</HEAD>

<BODY>

<form method="post" name="mainform">
     <input type="button" value="Disable My Submit" id=button1 name=button1>
</form>

</BODY>
<script language="javascript">
     document.mainform.button1.value = "Disable" + "\n" + "My" + "\n" + "button" + "..." + "\n" + "...My" + "\n" + "button";
</script>
</HTML>