khagen
asked on
Line Break in Button's Text
I would like the have a line breat in a button test. Instead of this
-------------------------- ---------- -----
| This needs a break here. Did it get it? |
-------------------------- ---------- -----
I want this;
-------------------------- ---------- ----
| This needs a break here. |
| Did it get it? |
-------------------------- ---------- ----
Here's the code;
<input type="button" name="cmdBreak" value="This needs a break here. Did it get it?" width="125" height="200" style="height:200">
Any Ideas?
--------------------------
| This needs a break here. Did it get it? |
--------------------------
I want this;
--------------------------
| This needs a break here. |
| Did it get it? |
--------------------------
Here's the code;
<input type="button" name="cmdBreak" value="This needs a break here. Did it get it?" width="125" height="200" style="height:200">
Any Ideas?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
10 is line feed.
Or you could just design a button image however you want and use that as your submit button...
<INPUT NAME="submit" TYPE="IMAGE" SRC="http://www.your-server.com/path/to/your.gif" HEIGHT=72 WIDTH=72 BORDER=0>
~JG
Thanks!
Tom
Tom
value="This needs a break here. Did it get it?"
10 is carriage return and 13 is line feed (or the other way round).
You can even include them both if you want to make sure of platform and browser support.
value="This needs a break here. Did it get it?"