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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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>
<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.
</script>
</HTML>
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.