Click to See Complete Forum and Search --> : breaking the text in a button to 2 lines


pelegk1
02-14-2005, 01:10 AM
i have this button :

<input type='button' value='search order' name='searchTeuda' id='searchTeuda' style='cursor:hand' onClick='CheckBeforeUpdate();'>
how can i split the value='search order' into 2 lines
so i will see in the button =>
--------
|search|
|order |
--------

thanks in advance
Peleg

_Aerospace_Eng_
02-14-2005, 02:34 AM
i dont think you can you may have to use an image instead
<input type="image" src="http://www.foo.com/submitimage.gif" name="imagesubmit" height="50" width="100">

Fang
02-14-2005, 06:43 AM
Works in IE6 and FF but not in Opera
You must break the line is shown.
<input type='button' value='search
order' name='searchTeuda' id='searchTeuda' style='cursor:hand;white-space: pre;' onclick='CheckBeforeUpdate();'>

NogDog
02-14-2005, 08:46 AM
This seems to work:

<button name='searchTeuda' id='searchTeuda' style='cursor:hand'
onClick='CheckBeforeUpdate();'>search<br>order</button>

phpnovice
02-14-2005, 10:11 AM
Originally posted by pelegk1
i have this button :

...snip...

how can i split the value='search order' into 2 lines
Yes, the answer is to use an Advanced Button -- which accepts HTML as the content. Keep in mind, however, that it is the content of the Advanced Button that is sent as POST data when the Advanced Button is used with type=submit. You cannot code a value attribute for the Advanced Button.

pelegk1
02-15-2005, 12:57 AM
?

phpnovice
02-15-2005, 09:51 AM
As previously posted (by NogDog), using the HTML BUTTON tag constitutes an "Advanced" Button:

<button ...>...</button>

pelegk1
02-15-2005, 01:29 PM
where can i read more about advanced buttons?
in what way are they better then the regular button?

NogDog
02-15-2005, 01:32 PM
Originally posted by pelegk1
where can i read more about advanced buttons?
in what way are they better then the regular button?
http://www.w3.org/TR/html4/interact/forms.html#h-17.5