my dog learned polymorphism*
The moose likes HTML, CSS and JavaScript and the fly likes multiple lines in button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "multiple lines in button" Watch "multiple lines in button" New topic

multiple lines in button

saikrishna cinux
Ranch Hand

Joined: Apr 16, 2005
Posts: 689
hi all,

i need to display the button(Non Image) lable in 2 lines using css

i have some solutions(non-standard)
I googled for the solution but ain't getting the exact.

please help me out

here is my non-standard solutions

second solution is
placing this tag

SCJP 1.4
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60817

Originally posted by saikrishna cinux:
second solution is
placing this tag

Does this not work?

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
saikrishna cinux
Ranch Hand

Joined: Apr 16, 2005
Posts: 689
Originally posted by Bear Bibeault:

Does this not work?

yes it worked fine

but i it's not a standar solution to use it because it is dependent on browser

any way i got one solution using css and div tag
but this is also providing some problem

div tag is like a layer in browser.
wheni am using this code i am able to see th ebutton with multiple lines(2 lines) but its overlapping on the other text

please help me out

here is my code

please provide me perfect solution if anybody worked previously on this issue.

thanks a lot in advance
I agree. Here's the link:
subject: multiple lines in button
Similar Threads
Problem with Inheritance
Page Breaking in HTML code?
Display image in jsp
Select some text from textarea
How to create a overlay in html to display ads or internal forms?