View Full Version : A new line in a button value?
12-17-2002, 08:11 PM
I would like to make the value of a button appear in two lines. Can this be done? I tried the \n but that worked perfectly to add \n to the value.
12-17-2002, 08:23 PM
methinks you'll have to use a <button> for that:
cant seem to make <input type="button">'s wrap even if i set specific padding/width/height:
eg: <input type="button" value="Hello World" style="width: 50px; height: 50px; padding: 10px;">
does not wrap (tested ie6)
12-17-2002, 09:02 PM
Excelent! Still allows the onClick method so I didn't care if it was an input or not. Honestly I didn't know there was a button tag. I use the w3c reference all the time and just haven't seen it. Now I have two lines AND an image!
12-18-2002, 10:31 AM
IE5.5+ I believe. There's a better way that displays in all but I forget how it's done.:D
12-18-2002, 02:29 PM
yea <button></button> isnt widely supported yet
12-18-2002, 04:47 PM
You could try this: value="Hello& #10;World"
You'll need to take out the space between the & and the # (I put the space in so the characters would display).
12-18-2002, 07:30 PM
yup that works, good idea :thumbsup:
12-19-2002, 01:10 AM
I think that was it...&#10; :D
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.