A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Engineering
»
HTML, CSS and JavaScript
Author
html input button's value in two lines
Hariom Tiwari
Greenhorn
Joined: Jun 15, 2008
Posts: 10
posted
Jan 22, 2009 07:05:46
0
Hi,
I have to display a button's value in two lines.
for example
hello
hello
how we can do this?
Bauke Scholtz
Ranch Hand
Joined: Oct 08, 2006
Posts: 2458
posted
Jan 22, 2009 07:29:45
0
<input type="button" value="foo bar"/>
Code depot of a Java EE / JSF developer
|
JSF / Eclipse / Tomcat kickoff tutorial
|
DAO kickoff tutorial
|
I ♥ Unicode
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15362
6
posted
Jan 22, 2009 08:49:16
0
Button tag is what you probably want to use and not an input type="button".
<button>hello<br/>hello</button>
Eric
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56554
14
I like...
posted
Jan 22, 2009 09:24:53
0
Using a hard carriage return to effect this makes me shudder. I much prefer Eric's solution.
[
Smart Questions
] [
JSP FAQ
] [
Books by Bear
] [
Bear's FrontMan
] [
About Bear
]
Bauke Scholtz
Ranch Hand
Joined: Oct 08, 2006
Posts: 2458
posted
Jan 22, 2009 09:34:53
0
Agree with that.
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: html input button's value in two lines
Similar Threads
dynamic form processing
jstl question
JSF page refresh after csv file download.(POI)
Buttons EventHandler and Property-Setting
html radio
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter